mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 15:12:27 +01:00
41451280ab
`npm run build` now generates a .app folder with the minimal run files `npm run electron` now uses the .app contents as a base deploy-dev.yml should upload just the .app folder after building (not tested yet)
24 lines
533 B
Bash
Executable File
24 lines
533 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Clear out any files remaining from old builds and recreate folder
|
|
rm -rf .package
|
|
mkdir .package
|
|
|
|
# .app should have the fully built game already after npm run build
|
|
cp -r .app/* .package
|
|
cp -r electron/* .package
|
|
|
|
# steam_appid.txt would end up in the resource dir
|
|
rm .package/steam_appid.txt
|
|
|
|
# Install electron sub-dependencies
|
|
cd electron
|
|
npm install
|
|
cd ..
|
|
|
|
BUILD_PLATFORM="${1:-"all"}"
|
|
# And finally build the app.
|
|
npm run electron:packager-$BUILD_PLATFORM
|
|
|
|
echo .build/* | xargs -n 1 cp electron/steam_appid.txt
|