aboutsummaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-07-18 12:45:49 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-07-19 21:46:07 -0700
commit318ddc72276dc297bda75789d6eafcddb754b11c (patch)
tree48d011abeb120b11549b67b33a67b15700f40340 /packaging
parent94521c9958f5416311318826450825fcbaede4ce (diff)
downloadsubsurface-318ddc72276dc297bda75789d6eafcddb754b11c.tar.gz
Android: ensure higher build number for arm64 APK
Google Play allows uploading two APKs, but only if the arm64 one has a higher build number. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/android/android-build-wrapper.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/packaging/android/android-build-wrapper.sh b/packaging/android/android-build-wrapper.sh
index 3bcac04c1..f5da7cabb 100755
--- a/packaging/android/android-build-wrapper.sh
+++ b/packaging/android/android-build-wrapper.sh
@@ -154,9 +154,15 @@ rm -df ./subsurface-mobile-build-arm/AndroidManifest.xml
if [ "$USE_X" ] ; then
bash "$USE_X" "$SUBSURFACE_SOURCE"/packaging/android/build.sh -buildnr "$BUILDNR" arm "$@"
+ # the arm64 APK has to have a higher build number
+ BUILDNR=$((BUILDNR+1))
+ echo "${BUILDNR}" > ./buildnr.dat
bash "$USE_X" "$SUBSURFACE_SOURCE"/packaging/android/build.sh -buildnr "$BUILDNR" arm64 "$@"
else
bash "$SUBSURFACE_SOURCE"/packaging/android/build.sh -buildnr "$BUILDNR" arm "$@"
+ # the arm64 APK has to have a higher build number
+ BUILDNR=$((BUILDNR+1))
+ echo "${BUILDNR}" > ./buildnr.dat
bash "$SUBSURFACE_SOURCE"/packaging/android/build.sh -buildnr "$BUILDNR" arm64 "$@"
fi