-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Expand file tree
/
Copy pathelectron-builder-config.js
More file actions
113 lines (111 loc) · 2.37 KB
/
electron-builder-config.js
File metadata and controls
113 lines (111 loc) · 2.37 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
require('dotenv').config({ path: process.env.DOTENV_PATH });
const config = {
appId: 'com.usebruno.app',
productName: 'Bruno',
electronVersion: '37.6.1',
directories: {
buildResources: 'resources',
output: 'out'
},
npmRebuild: false,
buildDependenciesFromSource: false,
extraResources: [
{
from: 'resources/data/sample-collection.json',
to: 'data/sample-collection.json'
}
],
files: ['**/*'],
afterSign: 'notarize.js',
mac: {
artifactName: '${name}_${version}_${arch}_${os}.${ext}',
category: 'public.app-category.developer-tools',
target: [
{
target: 'dmg',
arch: ['x64', 'arm64']
},
{
target: 'zip',
arch: ['x64', 'arm64']
}
],
icon: 'resources/icons/mac/icon.icns',
hardenedRuntime: true,
identity: 'Anoop MD (W7LPPWA48L)',
entitlements: 'resources/entitlements.mac.plist',
entitlementsInherit: 'resources/entitlements.mac.plist',
notarize: false,
protocols: [
{
name: 'Bruno',
schemes: [
'bruno'
]
}
]
},
linux: {
artifactName: '${name}_${version}_${arch}_${os}.${ext}',
icon: 'resources/icons/png',
target: [
{
target: 'AppImage',
arch: ['x64', 'arm64']
},
{
target: 'deb',
arch: ['x64', 'arm64']
},
{
target: 'rpm',
arch: ['x64', 'arm64']
}
],
protocols: [
{
name: 'Bruno',
schemes: ['bruno']
}
],
category: 'Development',
desktop: {
MimeType: 'x-scheme-handler/bruno;'
}
},
deb: {
// Docs: https://www.electron.build/configuration/linux#debian-package-options
depends: [
'libgtk-3-0',
'libnotify4',
'libnss3',
'libxss1',
'libxtst6',
'xdg-utils',
'libatspi2.0-0',
'libuuid1',
'libsecret-1-0',
'libasound2' // #1036
]
},
win: {
artifactName: '${name}_${version}_${arch}_win.${ext}',
icon: 'resources/icons/win/icon.ico',
target: [
{
target: 'nsis',
arch: ['x64', 'arm64']
}
],
sign: null,
publisherName: 'Bruno Software Inc'
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true,
allowElevation: true,
createDesktopShortcut: true,
createStartMenuShortcut: true
}
};
module.exports = config;