bitburner-src/tools/package-electron.sh

26 lines
560 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2021-09-15 18:22:36 +02:00
# Clear out any files remaining from old builds and recreate folder
rm -rf .package
mkdir .package
2023-03-01 06:50:53 +01:00
rm -rf .build
mkdir .build
# Install electron sub-dependencies
cd electron
npm install
cd ..
# .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
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