Fix order of operations for electron build script

This commit is contained in:
omuretsu 2023-05-24 12:10:29 -04:00
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