mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-27 08:27:32 +01:00
Fix order of operations for electron build script
This commit is contained in:
parent
708950350a
commit
f3c32d70f2
@ -6,6 +6,11 @@ mkdir .package
|
|||||||
rm -rf .build
|
rm -rf .build
|
||||||
mkdir .build
|
mkdir .build
|
||||||
|
|
||||||
|
# Install electron sub-dependencies
|
||||||
|
cd electron
|
||||||
|
npm install
|
||||||
|
cd ..
|
||||||
|
|
||||||
# .app should have the fully built game already after npm run build
|
# .app should have the fully built game already after npm run build
|
||||||
cp -r .app/* .package
|
cp -r .app/* .package
|
||||||
cp -r electron/* .package
|
cp -r electron/* .package
|
||||||
@ -13,11 +18,6 @@ cp -r electron/* .package
|
|||||||
# steam_appid.txt would end up in the resource dir
|
# steam_appid.txt would end up in the resource dir
|
||||||
rm .package/steam_appid.txt
|
rm .package/steam_appid.txt
|
||||||
|
|
||||||
# Install electron sub-dependencies
|
|
||||||
cd electron
|
|
||||||
npm install
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
BUILD_PLATFORM="${1:-"all"}"
|
BUILD_PLATFORM="${1:-"all"}"
|
||||||
# And finally build the app.
|
# And finally build the app.
|
||||||
npm run electron:packager-$BUILD_PLATFORM
|
npm run electron:packager-$BUILD_PLATFORM
|
||||||
|
Loading…
Reference in New Issue
Block a user