Change build algorythm
This commit is contained in:
parent
e4edc63338
commit
05652eee34
3 changed files with 33 additions and 16 deletions
19
debug-run.sh
19
debug-run.sh
|
@ -52,11 +52,22 @@ ext.postBuildExtras = {
|
|||
|
||||
sed -i '' -e 's/org.apache.cordova.*;/com.vladstirbu.cordova.CordovaActivity;/g' platforms/android/app/src/main/java/su/viende/omori/MainActivity.java
|
||||
|
||||
LANG="rus"
|
||||
build_variant() {
|
||||
echo "* Setting up $1 version..."
|
||||
rm -rf www
|
||||
cp -r www.eng www
|
||||
if [[ "$1" != "eng" ]]; then
|
||||
cp -rf www.$1/* www
|
||||
fi
|
||||
python3 create_listing.py
|
||||
echo "* Building $1 version..."
|
||||
cordova build android
|
||||
}
|
||||
|
||||
VARIANT="eng" # eng/rus/br
|
||||
|
||||
build_variant $VARIANT
|
||||
|
||||
mv www.$LANG www
|
||||
cordova build android
|
||||
mv www www.$LANG
|
||||
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"
|
Loading…
Add table
Add a link
Reference in a new issue