代码拉取完成,页面将自动刷新
同步操作将从 好未来技术团队/electron-playground 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# 配置参考: https://www.electron.build/configuration/configuration
# 应用id,不同平台有不同的规则建议
# MacOS: https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102070
# Windows: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/a9eac961-e77d-41a6-90a5-ce1a8b0cdb9c?redirectedfrom=MSDN
appId: 'com.electron-playground'
# 应用名称
productName: 'electron-playground' # 应用名字
directories:
# 构建资源文件目录,不会打包到app中,如果需要打包其中的一些文件比如托盘图标,需要在files字段中指定,比如 `"files": ["**/*", "build/icon.*"]`
buildResources: resources
# 打包输出目录
output: release/${version}
# 包含package.json的应用目录,默认会读取 `app`, `www`, 或当前工作目录,通常不用指定
# app: .
#默认读取package.json中的version,可不添加
buildVersion: 1.0.0
# 打包出的app文件名称,可以通过变量指定,比如这个配置打包后名称可能为`Electron Builder-1.0.0-latest.dmg`
artifactName: ${productName}_${version}.${ext}
# 指定需要复制过去打包的文件,https://www.electron.build/configuration/contents#files
files:
- dist
- resources
- '!node_modules'
# 是否打包成asar档案文件, https://www.electronjs.org/docs/tutorial/application-packaging
asar: false
# 在签名没有成功时打包程序会失败退出,在各平台的签名设置都配置好之后建议启用
forceCodeSigning: false
# 发布选项,和更新服务器类型相关,这里我们选择generic, https://www.electron.build/configuration/publish
#发布信息
releaseInfo:
releaseName: '版本更新'
releaseNotes: ''
mac:
target:
- dmg
- zip
icon: resources/icon.icns
# 应用的分类,可选的分类参考文档:https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW8
category: public.app-category.developer-tools
# 管理macOS应用程序的安全保护和资源访问。https://developer.apple.com/documentation/security/hardened_runtime
hardenedRuntime: true
# Key-value pairs that grant an executable permission to use a service or technology.
# https://developer.apple.com/documentation/bundleresources/entitlements
# https://developer.apple.com/documentation/security/hardened_runtime
entitlements: resources/entitlements.mac.plist
# Info.plist的额外条目。https://developer.apple.com/documentation/bundleresources/information_property_list
extendInfo:
NSMicrophoneUsageDescription: 请允许访问您的麦克风
NSCameraUsageDescription: 请允许访问您的摄像头
dmg:
# 配置安装窗口大小和背景图,图标和图标文字大小等
icon: 'resources/icon.ico'
title: '${productName}_${version}'
iconSize: 128
contents:
- x: 130
y: 220
- x: 410
y: 220
type: 'link'
path: '/Applications'
win:
target:
- target: nsis
arch:
- ia32
icon: resources/icon.ico
nsis:
oneClick: false
perMachine: false
allowElevation: true
allowToChangeInstallationDirectory: true
# 最终用户许可协议
# license: resources/eula.txt
deleteAppDataOnUninstall: false
displayLanguageSelector: false
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。