mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +01:00
6363c704db
Handling the exceptions and closing the app seem to properly kill the dangling processes that appear at launch in Windows 10. Without this, if an exception is throw before the window is active (ie: no steamapp_id.txt file), there will be remaining processes. Added electron-log to additionally log to a text file.
23 lines
539 B
Bash
Executable File
23 lines
539 B
Bash
Executable File
#!/bin/sh
|
|
|
|
mkdir -p .package/dist/src/ThirdParty || true
|
|
mkdir -p .package/src/ThirdParty || true
|
|
mkdir -p .package/node_modules || true
|
|
|
|
cp index.html .package
|
|
cp -r electron/* .package
|
|
cp -r dist/ext .package/dist
|
|
|
|
# The css files
|
|
cp dist/vendor.css .package/dist
|
|
cp main.css .package/main.css
|
|
|
|
# The js files.
|
|
cp dist/vendor.bundle.js .package/dist/vendor.bundle.js
|
|
cp main.bundle.js .package/main.bundle.js
|
|
|
|
# Adding electron-log dependency
|
|
cp -r node_modules/electron-log .package/node_modules/electron-log
|
|
|
|
npm run electron:packager
|