Files
sharedinbox/scripts/build_android_bundle_local.sh
T
Thomas SharedInboxandClaude Sonnet 4.6 168685e79e refactor: build Android bundle locally via fvm instead of Dagger
Extracts the unique contribution from PR #455: a local shell script that
builds the release AAB using fvm directly, bypassing the Dagger pipeline.
Adds the `build-android-bundle-local` task and updates `deploy-android-bundle`
to depend on it.

Closes #462

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-06 05:49:52 +02:00

16 lines
491 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
tmp=$(mktemp /dev/shm/keystore.XXXXXX.jks)
trap "rm -f $tmp" EXIT
printf '%s' "$ANDROID_KEYSTORE_BASE64" | base64 -d > "$tmp"
ANDROID_KEYSTORE_PATH="$tmp" \
ANDROID_HOME="${ANDROID_HOME:-$HOME/Android/Sdk}" \
fvm flutter build appbundle --release --no-pub \
--build-number "$(date +%s)" \
--build-name "$(date +%y%m%d-%H%M)" \
--dart-define="GIT_HASH=$(git rev-parse --short HEAD)" \
| grep -Ev "was tree-shaken|Tree-shaking can be disabled"