bitburner-src/tools/package-electron.sh

23 lines
392 B
Bash
Raw Normal View History

#!/bin/bash
2021-09-15 18:22:36 +02:00
set -euxo pipefail
# Clear out any files remaining from old builds
rm -rf .package
mkdir -p .package/dist/ || true
2022-01-28 02:44:50 +01:00
cp index.html .package
cp favicon.ico .package
cp -r electron/* .package
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