forked from iffy/electron-updater-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelectron-builder.js
41 lines (39 loc) · 924 Bytes
/
electron-builder.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
const { ARTIFACT_NAME_TEMPLATE, VERSION } = require('./build/constant');
/**
* @type {import('electron-builder').Configuration}
* @see https://www.electron.build/configuration/configuration
*/
module.exports = {
appId: "com.github.iffy.electronupdaterexample",
artifactName: ARTIFACT_NAME_TEMPLATE,
buildVersion: VERSION,
productName: "foobar",
afterSign: "./build/notarize.js",
files: [
"main.js",
"version.html", "!node_modules/electron-log/src/**/__specs__"
],
mac: {
category: 'your.app.category.type'
},
win: {
target: 'nsis'
},
nsis: {
oneClick: false
},
linux: {
category: 'your.app.category.type',
target: 'AppImage',
artifactName: ARTIFACT_NAME_TEMPLATE
},
appImage: {
artifactName: ARTIFACT_NAME_TEMPLATE
},
publish: {
provider: "custom",
vPrefixedTagName: true,
owner: 'Scille',
repo: 'electron-updater-example',
}
};