-
Notifications
You must be signed in to change notification settings - Fork 7
/
nwbuild.js
53 lines (45 loc) · 1.18 KB
/
nwbuild.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
45
46
47
48
49
50
51
52
53
import nwbuild from "nw-builder";
const baseOptions = {
srcDir: "./nw",
mode: "build",
version: "latest",
glob: false,
logLevel: "debug",
arch: "x64",
}
const mac = Object.assign(structuredClone(baseOptions), {
outDir: "build/mac/SMEditor",
platform: "osx",
app: {
name: "SMEditor",
genericName: "SMEditor",
icon: "./public/assets/icon/mac.icns",
comment: "Open source tool to view and edit StepMania charts",
CFBundleIdentifier: "io.github.tillvit.smeditor"
}
})
const win = Object.assign(structuredClone(baseOptions), {
outDir: "build/win/SMEditor",
platform: "win",
app: {
name: "SMEditor",
genericName: "SMEditor",
internalName: "SMEditor",
company: "tillvit",
icon: "./public/assets/icon/favicon.ico",
comment: "Open source tool to view and edit StepMania charts"
}
})
const linux = Object.assign(structuredClone(baseOptions), {
outDir: "build/linux/SMEditor",
platform: "linux",
app: {
name: "SMEditor",
genericName: "SMEditor",
icon: "./public/assets/icon/favicon.ico",
comment: "Open source tool to view and edit StepMania charts"
}
})
await nwbuild(mac)
await nwbuild(win)
await nwbuild(linux)