mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +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
|
||||
mkdir .build
|
||||
|
||||
# Install electron sub-dependencies
|
||||
cd electron
|
||||
npm install
|
||||
cd ..
|
||||
|
||||
# .app should have the fully built game already after npm run build
|
||||
cp -r .app/* .package
|
||||
cp -r electron/* .package
|
||||
@ -13,11 +18,6 @@ cp -r electron/* .package
|
||||
# steam_appid.txt would end up in the resource dir
|
||||
rm .package/steam_appid.txt
|
||||
|
||||
# Install electron sub-dependencies
|
||||
cd electron
|
||||
npm install
|
||||
cd ..
|
||||
|
||||
BUILD_PLATFORM="${1:-"all"}"
|
||||
# And finally build the app.
|
||||
npm run electron:packager-$BUILD_PLATFORM
|
||||
|
Loading…
Reference in New Issue
Block a user