-
Notifications
You must be signed in to change notification settings - Fork 283
Expand file tree
/
Copy pathelectron-builder.js
More file actions
70 lines (69 loc) · 1.56 KB
/
electron-builder.js
File metadata and controls
70 lines (69 loc) · 1.56 KB
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
/**
* @type {import('electron-builder').Configuration}
*/
const config = {
productName: 'Gitify',
appId: 'com.electron.gitify',
copyright: 'Copyright © 2026 Gitify Team',
asar: true,
files: [
'assets/images/*',
'assets/sounds/*',
'build/**/*',
'LICENSE',
'node_modules/**/*', // Ideally we would have !node_modules and let electron-builder prune deps
'package.json',
],
electronLanguages: ['en'],
protocols: [
{
name: 'Gitify',
schemes: ['gitify', 'gitify-dev'],
},
],
mac: {
category: 'public.app-category.developer-tools',
icon: 'assets/images/app-icon.icns',
identity: 'Adam Setch (5KD23H9729)',
type: 'distribution',
notarize: false, // Handle notarization in afterSign.js
target: {
target: 'default',
arch: ['universal'],
},
hardenedRuntime: true,
entitlements: 'assets/entitlements.mac.plist',
entitlementsInherit: 'assets/entitlements.mac.plist',
gatekeeperAssess: false,
},
dmg: {
icon: 'assets/images/app-icon.icns',
sign: false,
},
win: {
target: [
{
target: 'nsis',
arch: ['x64'],
},
],
icon: 'assets/images/app-icon.ico',
},
nsis: {
oneClick: false,
uninstallDisplayName: 'Gitify',
},
linux: {
target: ['AppImage', 'deb', 'rpm'],
category: 'Development',
maintainer: 'Gitify Team',
},
publish: {
provider: 'github',
owner: 'gitify-app',
repo: 'gitify',
},
afterSign: 'scripts/afterSign.js',
afterPack: 'scripts/afterPack.js',
};
module.exports = config;