mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-24 23:22:29 +01:00
27 lines
527 B
Bash
Executable File
27 lines
527 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
# Clear out any files remaining from old builds
|
|
rm -rf .package
|
|
|
|
mkdir -p .package/dist/ || true
|
|
|
|
cp index.html .package
|
|
cp favicon.ico .package
|
|
cp -r electron/* .package
|
|
# steam_appid.txt would end up in the resource dir
|
|
rm .package/steam_appid.txt
|
|
cp -r dist .package
|
|
|
|
# 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
|