-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.js
44 lines (43 loc) · 1.02 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
const productMeta = require("./product.json");
/** @type {import("electron-builder").Configuration} */
module.exports = {
extends: null,
productName: productMeta.productName,
appId: productMeta.productId,
copyright: `Copyright © ${new Date().getFullYear()} ${productMeta.copyrightOwner}`,
files: [
"./dist",
"./app",
"./public",
"./package.json",
"./product.json"
],
directories: {
buildResources: "public",
output: "builds/app"
},
extraMetadata: {
main: "app/app.js"
},
publish: ["github"],
detectUpdateChannel: true,
win: {
target: "nsis"
},
nsis: {
oneClick: false,
allowToChangeInstallationDirectory: true
},
linux: {
target: "AppImage"
},
mac: {
target: "dmg",
category: "public.app-category.utilities"
},
protocols: {
name: "s4d-protocol",
schemes: productMeta.protocols
},
generateUpdatesFilesForAllChannels: true
};