-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-builder.yml
57 lines (47 loc) · 1.16 KB
/
electron-builder.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#electron-builder配置文件
# 不继承其他任何配置(不配置打包会报错)
extends: null
# 构建配置
appId: com.electron.basic.client
productName: electron-react框架
directories:
buildResources: static
# 指定构建输出目录
output: release
asar: true
# Windows 特定配置
win:
icon: "src/static/icons/256x256.png"
target:
- nsis
- zip
requestedExecutionLevel: "requireAdministrator"
# Linux 特定配置
linux:
icon: "src/static/icons/256x256.png"
target: AppImage
category: Electron React Program
# 包含文件
files:
- "build/**/*"
- "src/main/*"
- "src/main/**/*"
# 额外的资源目录
extraResources:
- "extraResources/**"
# NSIS 安装程序配置(仅适用于 Windows)
nsis:
include: "scripts/installer.nsi"
oneClick: false
perMachine: true
menuCategory: false
allowElevation: true
allowToChangeInstallationDirectory: true
createDesktopShortcut: true
installerIcon: "src/static/icons/favicon.ico"
uninstallerIcon: "src/static/icons/favicon.ico"
installerHeaderIcon: "src/static/icons/favicon.ico"
# 自动更新配置
publish:
provider: generic
url: "https://www.xxx.cn/client"