Skip to content

Commit

Permalink
Merge branch 'build-stagemole-and-devmole-builds-in-build-script'
Browse files Browse the repository at this point in the history
  • Loading branch information
albin-mullvad committed Oct 23, 2023
2 parents a838b2a + 070e749 commit 90a275f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions build-apk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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 "**********************************"
Expand Down

0 comments on commit 90a275f

Please sign in to comment.