summaryrefslogtreecommitdiff
path: root/build_android.sh
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-11-30 11:09:37 -0500
committerPliable Pixels <pliablepixels@gmail.com>2018-11-30 11:09:37 -0500
commit823af113dde96518f3082d0b87db7b264446e199 (patch)
tree932c59cc5d3b4e275119cdc768610ef1427bded5 /build_android.sh
parentaae6348daeab5b4580f681271f38adc5687d2ab5 (diff)
nits
Diffstat (limited to 'build_android.sh')
-rwxr-xr-xbuild_android.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/build_android.sh b/build_android.sh
index 33686916..70d6b4df 100755
--- a/build_android.sh
+++ b/build_android.sh
@@ -76,6 +76,7 @@ build_release() {
# parse arguments
# credit: https://stackoverflow.com/a/14203146/1361529
+MODE="release"
while [[ $# -gt 0 ]]
do
key="$1"
@@ -101,6 +102,7 @@ APPVER=`cat config.xml | grep "widget " | sed 's/.* version=\"\([^\"]*\)\" xmlns
ver_pre5=${APPVER//.}
ver=${APPVER//.}9
+
echo "About to build version: $APPVER ($MODE)"
read -p "Press any key..."
@@ -108,6 +110,7 @@ echo "Removing wkwebview, adding certificate fork..."
cordova plugin remove cordova-plugin-ionic-webview > /dev/null 2>&1
cordova plugin add cordova-plugin-certificates-pp-fork > /dev/null 2>&1
+
if [ "${MODE}" = "debug" ]; then
build_debug
else
@@ -115,6 +118,7 @@ else
fi
+
echo "Adding back wkwebview and removing certificate fork..."
cordova plugin remove cordova-plugin-certificates-pp-fork > /dev/null 2>&1
cordova plugin add https://github.com/pliablepixels/cordova-plugin-ionic-webview.git > /dev/null 2>&1