-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathelectron-builder.config.cjs
62 lines (62 loc) · 1.72 KB
/
electron-builder.config.cjs
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
module.exports = {
productName: 'PersonalAnalytics',
appId: 'ch.ifi.hasel.personal-analytics',
asar: true,
asarUnpack: ['node_modules/better_sqlite3/**', 'node_modules/sqlite3/**'],
directories: {
output: 'release/${version}'
},
files: ['dist', 'dist-electron'],
publish: {
provider: 'github',
owner: 'HASEL-UZH',
repo: 'PersonalAnalytics'
},
afterSign: "scripts/notarize.cjs",
mac: {
target: {
target: "default",
arch: ["x64", "arm64"],
},
artifactName: '${productName}-${version}-${arch}.${ext}',
asarUnpack: ['node_modules/**/*.node'],
entitlements: 'build/entitlements.mac.plist',
entitlementsInherit: 'build/entitlements.mac.plist',
hardenedRuntime: true,
gatekeeperAssess: false,
notarize: false,
extendInfo: [
{
key: 'NSAppleEventsUsageDescription',
value: 'Please allow access to use the application.'
},
{
key: 'NSDocumentsFolderUsageDescription',
value: 'Please allow access to use the application.'
},
{
key: 'NSDownloadsFolderUsageDescription',
value: 'Please allow access to use the application.'
}
]
},
dmg: {
writeUpdateInfo: false
},
win: {
target: ["nsis"],
verifyUpdateCodeSignature: false,
azureSignOptions: {
publisherName: `${process.env.AZURE_PUBLISHER_NAME}`,
endpoint: `${process.env.AZURE_ENDPOINT}`,
codeSigningAccountName: `${process.env.AZURE_CODE_SIGNING_NAME}`,
certificateProfileName: `${process.env.AZURE_CERT_PROFILE_NAME}`,
},
},
nsis: {
oneClick: true,
deleteAppDataOnUninstall: false,
differentialPackage: false,
artifactName: '${productName}-${version}-Windows.${ext}',
}
};