summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2021-11-28 13:38:20 +0100
committercyBerta <cyberta@riseup.net>2021-11-28 13:38:20 +0100
commit6079004c29c50190933aece99bd6d880a0733837 (patch)
tree081bdafdf1c4c961c0104f5e17220bd6a1189f0a /scripts
parent525ed47b890dc061b9ba473465b961f28bd5ea50 (diff)
ensure that both apk and aab is build if neither -apk nor -aab is set
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prepareForDistribution.sh6
1 files changed, 4 insertions, 2 deletions
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/.