Do not build apk by default

This commit is contained in:
OleSTEEP 2024-07-05 02:08:49 +03:00
parent 82de1aa88a
commit 8f6ad3d730
3 changed files with 12 additions and 8 deletions

View file

@ -10,4 +10,4 @@ Android port of OMORI RPG game
* Put original assets to folders
* Install cordova
* `cordova platform add android`
* `debug-run.sh` or `build-apk.sh`
* `debug-run.sh android` or `build-apk.sh`

View file

@ -60,7 +60,7 @@ build_variant() {
fi
python3 scripts/replace_special_symbols.py
python3 scripts/create_listing.py
echo "* Building $1 version..."
echo "* Building $1 apk..."
cordova build android --prod --release
mv platforms/android/app/build/outputs/apk/release/app-release.apk output/app-release-$1.apk
}

View file

@ -61,14 +61,18 @@ build_variant() {
fi
python3 scripts/replace_special_symbols.py
python3 scripts/create_listing.py
echo "* Building $1 version..."
cordova build android
if [[ "$2" == "android" ]]; then
echo "* Building $1 apk..."
cordova build android
fi
}
VARIANT="br" # eng/rus/br
build_variant $VARIANT
build_variant $VARIANT $1
adb shell am force-stop su.viende.omori
adb install platforms/android/app/build/outputs/apk/debug/app-debug.apk
adb shell am start -n "su.viende.omori/su.viende.omori.MainActivity"
if [[ "$1" == "android" ]]; then
adb shell am force-stop su.viende.omori
adb install platforms/android/app/build/outputs/apk/debug/app-debug.apk
adb shell am start -n "su.viende.omori/su.viende.omori.MainActivity"
fi