-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathelectron-builder.json5
More file actions
101 lines (100 loc) · 3.12 KB
/
Copy pathelectron-builder.json5
File metadata and controls
101 lines (100 loc) · 3.12 KB
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
/**
* @see https://www.electron.build/configuration/configuration
* 修改了此配置可能需要修改 generate-latest-yml.js
*/
{
"appId": "app.bucketview.desktop",
"asar": true,
"asarUnpack": [
"**/node_modules/better-sqlite3/**/*",
"**/node_modules/bindings/**/*",
"**/node_modules/file-uri-to-path/**/*",
"**/node_modules/node-addon-api/**/*",
"**/node_modules/koffi/**/*"
],
// Rebuild native addons against the packaged Electron ABI.
// Required: CI system Node (MODULE 127) != Electron 30 (MODULE 123).
"npmRebuild": true,
"directories": {
"output": "release"
},
"files": [
"dist-electron",
"dist",
"!dist/favicon_b.*",
"!dist/favicon_w.*",
"!dist/**/*.map",
// Keep package small: exclude native source trees and docs.
"!**/node_modules/better-sqlite3/deps/**",
"!**/node_modules/better-sqlite3/src/**",
"!**/node_modules/better-sqlite3/build/Release/obj/**",
"!**/node_modules/better-sqlite3/build/Release/*.lib",
"!**/node_modules/better-sqlite3/build/Release/*.exp",
"!**/node_modules/better-sqlite3/build/Release/*.iobj",
"!**/node_modules/better-sqlite3/build/Release/*.ipdb",
"!**/node_modules/better-sqlite3/**/*.{md,markdown,ts,map}",
// koffi binaries are pruned per-platform in scripts/after-pack-prune.js
"!**/node_modules/koffi/vendor/**",
"!**/node_modules/koffi/doc/**",
"!**/node_modules/koffi/src/**",
"!**/node_modules/koffi/**/*.{md,markdown,ts,map}",
"!**/node_modules/**/{test,tests,__tests__,docs,doc,example,examples,demo,demos,coverage,benchmark,benchmarks}/**",
"!**/node_modules/**/*.{md,markdown,ts,map}",
"!**/node_modules/**/{LICENSE,LICENCE,license,licence,CHANGELOG,Changelog,changelog,README,Readme,readme}*",
"!**/node_modules/**/*.d.ts",
"!**/node_modules/**/tsconfig*.json",
"!**/node_modules/**/.{eslintrc,prettierrc,editorconfig,npmignore,gitignore}*"
],
"electronLanguages": [
"en-US",
"zh-CN"
],
"compression": "maximum",
"afterPack": "./scripts/after-pack-prune.js",
"afterAllArtifactBuild":"./generate-latest-yml.js",
"mac": {
"icon": "public/favicon.icns",
"artifactName": "BucketView_${version}_darwin_${arch}.zip",
"extraResources": [{"from":"bin/autoUpdater-darwin-${arch}", "to":"bin/autoUpdater-darwin-${arch}"}],
"target": [
{
"target": "zip",
"arch": [
"x64"
]
}
],
},
"win": {
"icon": "public/favicon.ico",
"extraResources": [{"from":"bin/autoUpdater-win32-${arch}.exe", "to":"bin/autoUpdater-win32-${arch}.exe"}],
"target": [
{
"target": "zip",
"arch": [
"x64"
]
}
],
"artifactName": "BucketView_${version}_win32_${arch}.zip"
},
"nsis": {
"oneClick": false,
"perMachine": false,
"allowToChangeInstallationDirectory": true,
"deleteAppDataOnUninstall": false
},
"linux": {
"icon": "public/favicon.png",
"artifactName": "BucketView_${version}_linux_${arch}.zip",
"extraResources": [],
"target": [
{
"target": "zip",
"arch": [
"x64"
]
}
]
}
}