From 6fb135eb463b91e61dba3b0cc5a572ebc6941af2 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Mon, 24 Dec 2018 13:31:34 -0800 Subject: Android: build both 32 and 64 bit binaries Signed-off-by: Dirk Hohndel --- packaging/android/android-build-wrapper.sh | 2 ++ scripts/android/after_success.sh | 4 ++-- scripts/android/before_install.sh | 2 ++ scripts/android/travisbuild.sh | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packaging/android/android-build-wrapper.sh b/packaging/android/android-build-wrapper.sh index ccdc05ea7..91bb2b7a8 100755 --- a/packaging/android/android-build-wrapper.sh +++ b/packaging/android/android-build-wrapper.sh @@ -149,8 +149,10 @@ rm -df ./subsurface-mobile-build-arm/AndroidManifest.xml if [ "$USE_X" ] ; then bash "$USE_X" "$SUBSURFACE_SOURCE"/packaging/android/build.sh -buildnr "$BUILDNR" arm "$@" + bash "$USE_X" "$SUBSURFACE_SOURCE"/packaging/android/build.sh -buildnr "$BUILDNR" arm64 "$@" else bash "$SUBSURFACE_SOURCE"/packaging/android/build.sh -buildnr "$BUILDNR" arm "$@" + bash "$SUBSURFACE_SOURCE"/packaging/android/build.sh -buildnr "$BUILDNR" arm64 "$@" fi ls -l ./subsurface-mobile-build-arm/build/outputs/apk/*.apk diff --git a/scripts/android/after_success.sh b/scripts/android/after_success.sh index 36219b562..c79988e06 100644 --- a/scripts/android/after_success.sh +++ b/scripts/android/after_success.sh @@ -8,8 +8,8 @@ fi source ${TRAVIS_BUILD_DIR}/scripts/release-message.sh echo "Submitting the folloing apk for continuous build release:" -ls -lh /android/subsurface-mobile-build-arm*/build/outputs/apk/*.apk +ls -lh ../subsurface-mobile-build-arm*/build/outputs/apk/*.apk # get and run the upload script wget -c https://raw.githubusercontent.com/dirkhh/uploadtool/master/upload.sh -bash ./upload.sh /android/subsurface-mobile-build-arm*/build/outputs/apk/*.apk +bash ./upload.sh ../subsurface-mobile-build-arm*/build/outputs/apk/*.apk diff --git a/scripts/android/before_install.sh b/scripts/android/before_install.sh index 2d428b4b6..253708320 100644 --- a/scripts/android/before_install.sh +++ b/scripts/android/before_install.sh @@ -8,6 +8,7 @@ git describe # setup build dir on the host, not inside of the container mkdir -p ../subsurface-mobile-build-arm +mkdir -p ../subsurface-mobile-build-arm64 # this uses a custom built Ubuntu image that includes Qt for Android and # Android NDK/SDK @@ -15,6 +16,7 @@ mkdir -p ../subsurface-mobile-build-arm PARENT="$( cd .. && pwd )" docker run -v $PWD:/android/subsurface \ -v $PARENT/subsurface-mobile-build-arm:/android/subsurface-mobile-build-arm \ + -v $PARENT/subsurface-mobile-build-arm64:/android/subsurface-mobile-build-arm64 \ --name=builder \ -w /android \ -d dirkhh/android-builder:5.12.02 \ diff --git a/scripts/android/travisbuild.sh b/scripts/android/travisbuild.sh index 6d8397e40..c76fb976b 100644 --- a/scripts/android/travisbuild.sh +++ b/scripts/android/travisbuild.sh @@ -8,4 +8,4 @@ set -e # (but of course having the right things in place will save a ton of time) docker exec -e TRAVIS="$TRAVIS" -t builder subsurface/packaging/android/android-build-wrapper.sh -ls -l ../subsurface-mobile-build-arm/build/outputs/apk/ +ls -l ../subsurface-mobile-build-arm*/build/outputs/apk/ -- cgit v1.2.3-70-g09d2