-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-builder.config.js
50 lines (48 loc) · 1.06 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
const { version } = require('./package.json');
/**
* @type {import('electron-builder').Configuration}
* @see https://www.electron.build/configuration/configuration
*/
const config = {
appId: 'com.pluscubed.flocc',
productName: 'Flocc',
directories: {
output: 'dist',
buildResources: 'buildResources',
},
files: [
'packages/**/dist/**',
'packages/main/assets/**',
'!node_modules/**',
'node_modules/semver',
'node_modules/yallist',
'node_modules/lru-cache',
],
extraMetadata: {
version: version,
},
nsis: {
artifactName: '${productName}-Setup-${version}.${ext}',
},
mac: {
hardenedRuntime: true,
gatekeeperAssess: false,
entitlements: 'buildResources/entitlements.mac.plist',
entitlementsInherit: 'buildResources/entitlements.mac.plist',
},
afterSign: 'electron-builder-notarize',
dmg: {
icon: false,
},
publish: [
{
provider: 's3',
bucket: 'flocc-releases',
},
{
provider: 'github',
publishAutoUpdate: false,
},
],
};
module.exports = config;