Add build scripts
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
out
|
||||||
|
7
build.sh
Normal file
7
build.sh
Normal 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
|
@@ -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": "",
|
||||||
|
Reference in New Issue
Block a user