-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelectron-builder.js
79 lines (77 loc) · 2.25 KB
/
electron-builder.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
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
const {version} = require('./package.json')
const {resolve} = require("path")
const versionArr = version.split('-')
const bundleShortVersion = versionArr[0]
const bundleVersion = versionArr[1]
const config = {
asar: true,
productName: 'moki-rss',
appId: 'cn.moki.rss.desktop',
directories: {
output: 'dist'
},
icon: resolve(__dirname, "./icons/icon.icns"),
asarUnpack: "**\\*.{node,dll}",
files: [
"./release/dist",
"node_modules",
"package.json"
],
mac: {
icon: resolve(__dirname, "./icons/icon.icns"),
target: [
"mas"
],
bundleVersion: bundleVersion,
bundleShortVersion: bundleShortVersion,
artifactName: '${productName}-${version}-${arch}.${ext}',
extendInfo: {
ElectronTeamID: 'CY8VG8KB97',
ITSAppUsesNonExemptEncryption: 'NO'
},
asarUnpack: [
'**/*.node',
],
},
mas: {
hardenedRuntime: false,
gatekeeperAssess: false,
entitlements: 'mas/entitlements.mas.plist',
entitlementsInherit: 'mas/entitlements.mas.inherit.plist',
entitlementsLoginHelper: 'mas/entitlements.mas.loginhelper.plist',
provisioningProfile: 'mas/provisioning.provisionprofile',
},
masDev: {
hardenedRuntime: false,
gatekeeperAssess: false,
entitlements: 'mas/entitlements.mas.plist',
entitlementsInherit: 'mas/entitlements.mas.inherit.plist',
entitlementsLoginHelper: 'mas/entitlements.mas.loginhelper.plist',
provisioningProfile: 'mas/provisioning.provisionprofile',
},
dmg: {
sign: false
},
win: {
icon: resolve(__dirname, "./icons/[email protected]"),
target: [
"nsis"
],
verifyUpdateCodeSignature: false,
signingHashAlgorithms: [
"sha256"
],
signDlls: false,
requestedExecutionLevel: "asInvoker",
},
nsis: {
oneClick: false,
perMachine: false,
allowToChangeInstallationDirectory: true,
deleteAppDataOnUninstall: false,
createDesktopShortcut: true,
createStartMenuShortcut: true,
shortcutName: "Moki RSS"
},
}
module.exports = config