Do not build apk by default
This commit is contained in:
parent
82de1aa88a
commit
8f6ad3d730
3 changed files with 12 additions and 8 deletions
|
@ -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`
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -61,14 +61,18 @@ build_variant() {
|
|||
fi
|
||||
python3 scripts/replace_special_symbols.py
|
||||
python3 scripts/create_listing.py
|
||||
echo "* Building $1 version..."
|
||||
if [[ "$2" == "android" ]]; then
|
||||
echo "* Building $1 apk..."
|
||||
cordova build android
|
||||
fi
|
||||
}
|
||||
|
||||
VARIANT="br" # eng/rus/br
|
||||
|
||||
build_variant $VARIANT
|
||||
build_variant $VARIANT $1
|
||||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue