Move electron build script to /tools/

Also enables bash strict mode flags for the build script
This commit is contained in:
Martin Fournier
2022-03-23 06:17:50 -04:00
parent 452ee3da7f
commit cec5f1ce29
2 changed files with 3 additions and 1 deletions

View File

@ -123,7 +123,7 @@
"test:watch": "jest --watch",
"watch": "webpack --watch --mode production",
"watch:dev": "webpack --watch --mode development",
"electron": "sh ./package.sh",
"electron": "sh ./tools/package-electron.sh",
"electron:packager": "electron-packager .package bitburner --all --out .build --overwrite --icon .package/icon.png --no-prune",
"electron:packager-all": "electron-packager .package bitburner --all --out .build --overwrite --icon .package/icon.png",
"electron:packager-win": "electron-packager .package bitburner --platform win32 --arch x64 --out .build --overwrite --icon .package/icon.png",

2
package.sh → tools/package-electron.sh Executable file → Normal file
View File

@ -1,5 +1,7 @@
#!/bin/sh
set -euxo pipefail
# Clear out any files remaining from old builds
rm -rf .package