-
Notifications
You must be signed in to change notification settings - Fork 10
/
electron-builder.json5
135 lines (135 loc) · 3.79 KB
/
electron-builder.json5
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// @see https://www.electron.build/configuration/configuration
{
"$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
"appId": "AigcPanel",
"asar": true,
"npmRebuild": true,
"productName": "AigcPanel",
"directories": {
"output": "dist-release",
"buildResources": "electron/resources/build"
},
"afterPack": "./scripts/build_optimize.cjs",
"files": [
"dist",
"dist-electron"
],
"extraResources": [
{
"from": "node_modules/ffmpeg-static",
"to": "bin/ffmpeg",
}
],
"win": {
icon: "electron/resources/build/logo.ico",
"target": [
{
"target": "nsis",
"arch": [
"x64",
"arm64"
]
},
],
"artifactName": "${productName}-${version}-win-${arch}.${ext}",
"extraResources": [
{
"from": "electron/resources/extra",
"to": "extra",
"filter": [
"common",
"win"
]
}
]
},
"nsis": {
"artifactName": "${productName}-${version}-win-setup-${arch}.${ext}",
"shortcutName": "${productName}",
"uninstallDisplayName": "${productName}",
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": false
},
"portable": {
"artifactName": "${productName}-${version}-win-portable-${arch}.${ext}",
"requestExecutionLevel": "user"
},
"appx": {
"identityName": "AigcPanel",
"publisher": "CN=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX",
"publisherDisplayName": "AigcPanel",
"languages": [
"zh-CN",
"en-US",
"zh-TW"
]
},
"mac": {
"icon": "logo.icns",
"target": [
{
"target": "dmg",
"arch": [
"x64",
"arm64"
]
}
],
"artifactName": "${productName}-${version}-mac-${arch}.${ext}",
"extraResources": [
{
"from": "electron/resources/extra",
"to": "extra",
"filter": [
"common",
"mac"
]
}
],
"x64ArchFiles": "Contents/Resources/extra/**/*",
"entitlementsInherit": "entitlements.mac.plist",
"extendInfo": {
"NSDocumentsFolderUsageDescription": "Application requests access to the user's Documents folder.",
"NSDownloadsFolderUsageDescription": "Application requests access to the user's Downloads folder."
},
"type": "development",
"notarize": false,
"darkModeSupport": false,
"hardenedRuntime": false
},
"linux": {
"icon": "logo.icns",
"desktop": "logo",
"maintainer": "AigcPanel",
"category": "Utility",
"target": [
{
"target": "AppImage",
"arch": [
"x64",
"arm64"
]
},
{
"target": "deb",
"arch": [
"x64",
"arm64"
]
}
],
"artifactName": "${productName}-${version}-linux-${arch}.${ext}",
"extraResources": [
{
"from": "electron/resources/extra",
"to": "extra",
"filter": [
"common",
"linux"
]
}
]
}
}