From 78302ff3ad54934d599eaefc937e92cc68b1062f Mon Sep 17 00:00:00 2001 From: Albin Date: Thu, 19 Oct 2023 21:38:15 +0200 Subject: [PATCH] Build stage and dev builds in build script This commit adds stagemole and devmole builds in the android builds script. This includes both bundles and apks. --- build-apk.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build-apk.sh b/build-apk.sh index 0056d208a128..fb1cb3d2cb99 100755 --- a/build-apk.sh +++ b/build-apk.sh @@ -13,8 +13,8 @@ echo "" BUILD_TYPE="release" GRADLE_BUILD_TYPE="release" -GRADLE_TASK="createOssProdReleaseDistApk" -BUNDLE_TASK="createPlayProdReleaseDistBundle" +GRADLE_TASKS=(createOssProdReleaseDistApk createPlayDevmoleReleaseDistApk createPlayStagemoleReleaseDistApk) +BUNDLE_TASKS=(createPlayProdReleaseDistBundle createPlayDevmoleReleaseDistBundle createPlayStagemoleReleaseDistBundle) CARGO_ARGS="--release" EXTRA_WGGO_ARGS="" BUILD_BUNDLE="no" @@ -25,13 +25,13 @@ while [ ! -z "${1:-""}" ]; do if [[ "${1:-""}" == "--dev-build" ]]; then BUILD_TYPE="debug" GRADLE_BUILD_TYPE="debug" - GRADLE_TASK="createOssProdDebugDistApk" - BUNDLE_TASK="createOssProdDebugDistBundle" + GRADLE_TASKS=(createOssProdDebugDistApk) + BUNDLE_TASKS=(createOssProdDebugDistBundle) CARGO_ARGS="--features api-override" elif [[ "${1:-""}" == "--fdroid" ]]; then GRADLE_BUILD_TYPE="fdroid" - GRADLE_TASK="createOssProdFdroidDistApk" - BUNDLE_TASK="createOssProdFdroidDistBundle" + GRADLE_TASKS=(createOssProdFdroidDistApk) + BUNDLE_TASKS=(createOssProdFdroidDistBundle) EXTRA_WGGO_ARGS="--no-docker" elif [[ "${1:-""}" == "--app-bundle" ]]; then BUILD_BUNDLE="yes" @@ -116,10 +116,10 @@ echo "Updating relays.json..." cargo run --bin relay_list $CARGO_ARGS > build/relays.json cd "$SCRIPT_DIR/android" -$GRADLE_CMD --console plain "$GRADLE_TASK" +$GRADLE_CMD --console plain "${GRADLE_TASKS[@]}" if [[ "$BUILD_BUNDLE" == "yes" ]]; then - $GRADLE_CMD --console plain "$BUNDLE_TASK" + $GRADLE_CMD --console plain "${BUNDLE_TASKS[@]}" fi echo "**********************************"