This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.js
58 lines (56 loc) · 1.7 KB
/
build.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
const builder = require('electron-builder');
const compression = process.env.NODE_ENV === 'production' ? 'maximum' : 'store';
builder.build({
targets: builder.Platform.current().createTarget(),
config: {
files: [
'./bin/**/*',
'./build/**/*',
'./electron/**/*',
],
extends: null,
asar: false,
appId: 'co.sentinel.desktop',
productName: 'Sentinel',
compression: compression,
linux: {
artifactName: 'sentinel-linux-${version}.${ext}',
category: 'Utility',
executableName: 'sentinel',
icon: './electron/',
target: [
'AppImage',
'deb',
'dir',
'zip',
],
},
mac: {
artifactName: 'sentinel-darwin-${version}.${ext}',
category: 'public.app-category.utilities',
icon: './electron/icon.icns',
hardenedRuntime: true,
gatekeeperAssess: false,
minimumSystemVersion: '10.12.0',
forceCodeSigning: true,
entitlements: './electron/entitlements.mac.plist',
entitlementsInherit: './electron/entitlements.mac.plist',
},
win: {
artifactName: 'sentinel-windows-${version}.${ext}',
icon: './electron/icon.ico',
target: [
'nsis',
'zip',
],
},
publish: {
provider: 'github',
owner: 'sentinel-official',
repo: 'desktop-client',
releaseType: 'release',
},
},
}).then(() => {
console.log('Build OK!');
}).catch(console.error);