mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
Fix order of operations for electron build script
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user