Add build scripts

This commit is contained in:
2023-11-09 11:51:06 +01:00
parent 8df518e2c0
commit d7b384e49b
3 changed files with 13 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
node_modules node_modules
out

7
build.sh Normal file
View File

@@ -0,0 +1,7 @@
for file in client center;
do
for target in windows linux
do
nexe -i $file.js -o out/$file-$target -t $target-x86-18.18.2 --build
done
done

View File

@@ -4,7 +4,11 @@
"description": "", "description": "",
"main": "main.js", "main": "main.js",
"scripts": { "scripts": {
"dev": "node main.js" "build-linux-client": "nexe -i client.js -o out/client-linux -t linux-x64-18.18.2",
"build-windows-client": "nexe -i client.js -o out/client-windows -t windows-x86-18.18.2",
"build-linux-server": "nexe -i server.js -o out/server-linux -t linux-x64-18.18.2",
"build-windows-server": "nexe -i server.js -o out/server-windows -t windows-x86-18.18.2",
"build": "sh build.sh"
}, },
"keywords": [], "keywords": [],
"author": "", "author": "",