summaryrefslogtreecommitdiff
path: root/build_android.sh
diff options
context:
space:
mode:
authorDamir Merdan <44159556+dado-ca@users.noreply.github.com>2018-11-14 11:17:18 +0100
committerGitHub <noreply@github.com>2018-11-14 11:17:18 +0100
commitbb78ec417458347887a0668223dc7fd7bad377ea (patch)
tree494a609118c85467702061a743e9fd0b7dba1860 /build_android.sh
parentb2cccc52c08f8195a1ddbb747c949915134940b4 (diff)
parentdbee219a9674daadd05aa1a27b36e76d91a35b5f (diff)
Merge branch 'master' into master
Diffstat (limited to 'build_android.sh')
-rwxr-xr-xbuild_android.sh22
1 files changed, 6 insertions, 16 deletions
diff --git a/build_android.sh b/build_android.sh
index 0eb723c5..65d14676 100755
--- a/build_android.sh
+++ b/build_android.sh
@@ -1,10 +1,14 @@
#!/bin/bash
+ ./electron_js/sync_versions.sh
+
APPVER=`cat config.xml | grep "widget " | sed 's/.* version=\"\([^\"]*\)\" xmlns.*/\1/'`
# multipleApk adds 2 and 4 in Xwalk builds for arm and x86 respectively
ver_pre5=${APPVER//.}
ver=${APPVER//.}9
+ echo "About to build version: $APPVER"
+ read -p "Press any key..."
# App signining credentials in this file
NINJAKEYSTORE=~/Desktop/zmNinja.keystore
@@ -13,23 +17,9 @@ if [ ! -f "$NINJAKEYSTORE" ]; then
exit
fi
-rm -f release_files 2>/dev/null
+rm -rf release_files 2>/dev/null
mkdir release_files
-# no arguments - build both
-# 1 == build crosswalk only
-# 2 == build native only
-BUILD_MODE="all"
-if [ "$1" = "1" ]; then
- BUILD_MODE="xwalk"
- echo "only building crosswalk"
-fi
-
-if [ "$1" = "2" ]; then
- BUILD_MODE="native"
- echo "only building native view (5+)"
-fi
-
echo "----------> Only building native. Not building crosswalk anymore due to compatibility issues <----------------------"
BUILD_MODE="native"
@@ -39,7 +29,7 @@ if [ "$BUILD_MODE" = "native" ] || [ "$BUILD_MODE" = "all" ]; then
echo "${ver}: Building Release mode for android 5+..."
echo "--------------------------------------------"
-# No longger needed as we are not supporting Xwalk
+# No longer needed as we are not supporting Xwalk
# echo "Removing android and re-adding..."
# cordova platform remove android
# cordova platform add android@6.4.0