From 7d1bec126d30efe3bdb113d1e55360c53cda25ba Mon Sep 17 00:00:00 2001 From: Sebastian Streich Date: Mon, 19 Sep 2022 18:23:25 +0200 Subject: [PATCH] HM --- scripts/android/package.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/android/package.sh b/scripts/android/package.sh index a283e8aba4..10dbf67b17 100755 --- a/scripts/android/package.sh +++ b/scripts/android/package.sh @@ -9,6 +9,8 @@ if [ -f .env ]; then . .env fi +set -x + JOBS=8 QTPATH= @@ -130,11 +132,12 @@ git apply --directory="android/src/" "3rdparty/adjust_https_to_http.diff" || die print Y "Compile Sentry..." cmake -B .tmp/sentry_build -S 3rdparty/sentry_native --toolchain ${ANDROID_NDK_ROOT}/build/cmake/android.toolchain.cmake \ -DSENTRY_BUILD_SHARED_LIBS=false \ - -DANDROID_ABI=${ARCH} + -DANDROID_ABI=${ARCH} || die "Failed to generate the sentry project" cmake --build .tmp/sentry_build --parallel cmake --install .tmp/sentry_build --prefix .tmp/sentry_install --config RelWithDebInfo + printn Y "Computing the version... " export SHORTVERSION=$(cat version.pri | grep VERSION | grep defined | cut -d= -f2 | tr -d \ ) # Export so gradle can pick it up export VERSIONCODE=$(date +%s | sed 's/.\{3\}$//' )"0" #Remove the last 3 digits of the timestamp, so we only get every ~16m a new versioncode