bitburner-src/package.sh
Martin Fournier 452ee3da7f Move main bundle output to ./dist subfolder
Excludes the index.html so that the github page can still work as is.
This will declutter the root of the repo a fair bit.
2022-04-07 07:48:44 -04:00

21 lines
370 B
Bash
Executable File

#!/bin/sh
# 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
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