-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-builder.config.js
54 lines (51 loc) · 1.46 KB
/
electron-builder.config.js
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
module.exports = async function () {
let env = process.env.NODE_ENV
let fileSet = "icons/"
if(env != undefined){
fileSet = {
"from": "icons/",
"to": "icons/",
"filter": ["**white**"]
}
}
return {
afterSign: "build/notarize.js",
directories: {
output: 'out',
buildResources: 'buildResources',
},
artifactName: "slippod.${ext}",
files: [
{
"from": "dist",
"to": "src",
},
"package.json",
"**/node_modules/**/*"
],
extraResources: [
"libsimple/",
fileSet,
],
extraMetadata: {
version: process.env.npm_package_version,
},
// Specify linux target just for disabling snap compilation
linux: {
target: "AppImage",
icon: (env === undefined)? "icons/icon.png":"icons/icon_white.png",
},
mac: {
target: "dmg",
hardenedRuntime: true,
gatekeeperAssess: false,
entitlements: "build/entitlements.mac.plist",
entitlementsInherit: "build/entitlements.mac.plist",
icon: (env === undefined)? "icons/icon.icns":"icons/icon_white.icns",
},
win: {
target: "nsis",
icon: (env === undefined)? "icons/icon.ico":"icons/icon_white.ico",
},
};
};