bitburner-src/package.sh

19 lines
348 B
Bash
Raw Normal View History

#!/bin/sh
2021-09-15 18:22:36 +02:00
# Clear out any files remaining from old builds
rm -rf .package
mkdir -p .package/dist/
cp -r electron/* .package
cp -r dist .package
cp index.html .package/index.html
# Install electron sub-dependencies
cd electron
npm install
cd ..
BUILD_PLATFORM="${1:-"all"}"
# And finally build the app.
npm run electron:packager-$BUILD_PLATFORM