forked from themoonisacheese/2bored2wait
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.js
More file actions
21 lines (20 loc) · 686 Bytes
/
build.js
File metadata and controls
21 lines (20 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
const { compile } = require("nexe");
const pack = require("./package.json");
const fs = require("fs");
const util = require("./util");
util.mkdir("nexe-conf");
fs.copyFileSync("config/default.json", "nexe-conf/default.json");
["linux", "alphine", "windows"].forEach((os) => {
["x86", "x64"].forEach((arch) => {
build(`${os}-${arch}`);
});
});
build("macos-x64");
function build(platform) {
compile({
input: "cli.js",
resources: ["webserver/index*", "nexe-conf", "node_modules/discord.js/src", "node_modules/particles.js/particles.js", "node_modules/particles.js/demo/js/app.js"],
name: `build/2bored2wait-${platform}-${pack.version}`,
target: `${platform}-14.15.3`
});
}