-
Notifications
You must be signed in to change notification settings - Fork 0
/
electron-builder.config.cjs
52 lines (50 loc) · 1.07 KB
/
electron-builder.config.cjs
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
const pkg = require("./package.json");
/**
* @see https://www.electron.build/configuration/configuration
*/
const config = {
appId: "net.nekobato.dot-e",
asar: true,
productName: "DotE",
directories: {
output: `release/${pkg.version}`,
},
files: [
"dist",
"!dist/assets/*.map",
"dist-electron",
{
from: "node_modules/file-icon/file-icon",
to: "dist-electron/file-icon",
},
],
mac: {
target: ["default"],
icon: "dist/icons/mac/icon.icns",
category: "public.app-category.social-networking",
entitlements: "build/entitlements.mac.plist",
entitlementsInherit: "build/entitlements.mac.plist",
notarize: {
teamId: process.env.APPLE_TEAM_ID,
},
publish: ["github"],
},
win: {
target: [
{
target: "nsis",
arch: ["x64"],
},
],
},
// nsis: {
// oneClick: false,
// perMachine: false,
// allowToChangeInstallationDirectory: true,
// deleteAppDataOnUninstall: false,
// },
// linux: {
// target: ["AppImage"],
// },
};
module.exports = config;