diff --git a/tools/package-electron.sh b/tools/package-electron.sh index 559fdedc8..920f02af5 100755 --- a/tools/package-electron.sh +++ b/tools/package-electron.sh @@ -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