Files
oott/frontend/build_android_release.sh
T
rzuastiandClaude Opus 4.8 11a964bd37 Add Android release signing config for Play Store
Release builds were signed with the debug key, which Play rejects. Load
an upload keystore from android/key.properties (gitignored) and use it
for the release signing config, falling back to the debug key when the
file is absent so `flutter run --release` still works without a keystore.

Add key.properties.example documenting the keytool setup and a
build_android_release.sh helper that builds the signed AAB and refuses
to run when key.properties is missing.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-15 14:42:40 -04:00

21 lines
646 B
Bash
Executable File

#!/usr/bin/env bash
#
# Build the signed Android App Bundle (.aab) for the Google Play Store.
#
# Requires android/key.properties pointing at your upload keystore
# (see android/key.properties.example). Without it the build falls back to the
# debug signing key and Play will reject the upload.
set -e
if [ ! -f android/key.properties ]; then
echo "error: android/key.properties not found — release would be debug-signed." >&2
echo " See android/key.properties.example to set up the upload keystore." >&2
exit 1
fi
flutter build appbundle --release
echo
echo "App bundle: build/app/outputs/bundle/release/app-release.aab"