mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-08 08:43:53 +01:00
069b7831d1
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.
19 lines
348 B
Bash
Executable File
19 lines
348 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# 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
|