-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnwbuild.js
60 lines (51 loc) · 1.36 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
54
55
56
57
58
59
60
import nwbuild from "nw-builder";
const baseOptions = {
srcDir: "./nw",
mode: "build",
version: "latest",
glob: false,
logLevel: "debug",
arch: "x64",
}
const mac_x64 = Object.assign(structuredClone(baseOptions), {
outDir: "build/mac-x64/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",
NSHumanReadableCopyright: ""
}
})
const mac_arm = Object.assign(structuredClone(mac_x64), {
outDir: "build/mac-arm/SMEditor",
arch: "arm64",
})
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_arm)
await nwbuild(mac_x64)
await nwbuild(win)
await nwbuild(linux)