generated from Inalegwu/ElectroStatic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.ts
42 lines (41 loc) · 840 Bytes
/
build.ts
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
import { build } from "electron-builder";
build({
config: {
appId: "com.apollo.app",
productName: "Apollo",
artifactName: "${productName}-${version}_${platform}_${arch}.${ext}",
buildDependenciesFromSource: true,
files: ["out/**/*"],
directories: {
output: "release/${version}",
},
mac: {
target: ["dmg"],
icon: "build/osx.icns",
},
win: {
target: [
{
target: "nsis",
arch: ["x64"],
},
],
icon: "build/win.ico",
},
linux: {
target: [
{
target: "AppImage",
},
],
icon: "build/unix.png",
},
nsis: {
oneClick: true,
perMachine: true,
runAfterFinish: true,
installerIcon: "build/win.ico",
uninstallerIcon: "build/win.ico",
},
},
});