From 6079004c29c50190933aece99bd6d880a0733837 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sun, 28 Nov 2021 13:38:20 +0100 Subject: ensure that both apk and aab is build if neither -apk nor -aab is set --- scripts/prepareForDistribution.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/prepareForDistribution.sh b/scripts/prepareForDistribution.sh index bbb99740..59b578cf 100755 --- a/scripts/prepareForDistribution.sh +++ b/scripts/prepareForDistribution.sh @@ -340,7 +340,8 @@ if [[ ${DO_BUILD} == true ]]; then ./gradlew clean assemble${FLAVOR}ProductionArm64Beta $STACKTRACE || quit cp $BASE_APK_OUTPUT_DIR/${FLAVOR_LOWERCASE}ProductionArm64/beta/*.apk $RELEASES_FILE_DIR/. fi - elif [[ -z ${BUILD_APK} ]]; then + fi + if [[ -z ${BUILD_APK} ]]; then echo "${GREEN} -> build beta release (.aab) for flavor ${FLAVOR}${NC}" ./gradlew clean bundle${FLAVOR}ProductionFatBeta $STACKTRACE || quit cp $BASE_BUNDLE_OUTPUT_DIR/${FLAVOR_LOWERCASE}ProductionFatBeta/*.aab $RELEASES_FILE_DIR/. @@ -371,7 +372,8 @@ if [[ ${DO_BUILD} == true ]]; then ./gradlew clean assemble${FLAVOR}ProductionArm64Release $STACKTRACE || quit cp $BASE_APK_OUTPUT_DIR/${FLAVOR_LOWERCASE}ProductionArm64/release/*.apk $RELEASES_FILE_DIR/. fi - elif [[ -z ${BUILD_APK} ]]; then + fi + if [[ -z ${BUILD_APK} ]]; then echo -e "${GREEN} -> build stable release (.aab) for flavor ${FLAVOR}${NC}" ./gradlew clean bundle${FLAVOR}ProductionFatRelease $STACKTRACE || quit cp $BASE_BUNDLE_OUTPUT_DIR/${FLAVOR_LOWERCASE}ProductionFatRelease/*.aab $RELEASES_FILE_DIR/. -- cgit v1.2.3