From 9b2ab9339916a6b3168392447a5b4284bc3c9be3 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sun, 3 Mar 2024 14:54:06 +0100 Subject: add another build step to build beta releases: aab's for gplay, and a fat apk that can be installed next to a stable release for the download from the website --- .gitlab-ci.yml | 17 +++++++++++++++++ scripts/prepareForDistribution.sh | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8a0b48b0..ec7efdb3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -166,6 +166,23 @@ build_double_release: expire_in: 1 week when: manual +build_double_beta_releases: + image: "0xacab.org:4567/leap/bitmask_android/android-ndk:latest" + stage: build + script: + - ./scripts/prepareForDistribution.sh build -allflavors -apk fat -no-tag -beta >> webBetaRelease.log 2>&1 + - ./scripts/prepareForDistribution.sh build -allflavors -aab -no-tag >> gplayBetaRelease.log 2>&1 + artifacts: + paths: + - app/build/outputs/ + - currentReleases/ + - webBetaRelease.log + - gplayBetaRelease.log + when: always + expire_in: 1 week + when: manual + + build_release: image: "0xacab.org:4567/leap/bitmask_android/android-ndk:latest" stage: build diff --git a/scripts/prepareForDistribution.sh b/scripts/prepareForDistribution.sh index 301ce1a3..54d0b555 100755 --- a/scripts/prepareForDistribution.sh +++ b/scripts/prepareForDistribution.sh @@ -334,7 +334,7 @@ if [[ ${DO_BUILD} == true ]]; then if [[ ! -d $RELEASES_FILE_DIR ]]; then mkdir $RELEASES_FILE_DIR fi - rm -rf $RELEASES_FILE_DIR/* + # rm -rf $RELEASES_FILE_DIR/* if [[ ${BETA} == true ]]; then if [[ -n ${BUILD_APK} ]]; then -- cgit v1.2.3