-
Notifications
You must be signed in to change notification settings - Fork 0
/
.electron-builder.config.js
58 lines (58 loc) · 1.25 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
55
56
57
58
/**
* @type {() => import('electron-builder').Configuration}
* @see https://www.electron.build/configuration/configurtagation
*/
module.exports = async () => ({
productName: 'JustoHub',
appId: 'com.getjusto.crisp',
afterSign: 'electron-builder-notarize',
directories: {
output: 'dist',
buildResources: 'build',
},
publish: {
provider: 'github',
publishAutoUpdate: true,
},
mac: {
hardenedRuntime: true,
electronLanguages: ['en'],
icon: 'build/icon.icns',
entitlements: './node_modules/electron-builder-notarize/entitlements.mac.inherit.plist',
publish: ['github'],
target: [
{
target: 'dmg',
arch: ['arm64', 'x64'],
},
{
target: 'zip',
arch: ['arm64', 'x64'],
},
],
notarize: {
teamId: '3CZ24HA8DS',
},
},
win: {
publish: ['github'],
icon: 'build/icon.ico',
signingHashAlgorithms: ['sha256'],
sign: './signing/sign.js',
artifactName: `Justo-Hub-Setup-v${process.env.npm_package_version}.exe`,
target: [
{
target: 'nsis',
arch: ['x64', 'ia32'],
},
],
},
nsis: {
oneClick: true,
perMachine: true,
},
dmg: {
icon: 'build/icon.icns',
internetEnabled: true,
},
})