fix: add signing config so release APK can be installed
All checks were successful
Build & Deploy APK / build (push) Successful in 1m53s

The release build had no signing config, producing an unsigned APK
that Android refuses to install. Added debug keystore signing for
release builds and a CI step to ensure the keystore exists.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-25 22:08:41 +01:00
parent 0fc4e33f08
commit 5c2f089b4e
2 changed files with 26 additions and 0 deletions

View File

@@ -20,6 +20,22 @@ jobs:
echo "sdk.dir=$ANDROID_HOME" > local.properties
cat local.properties
- name: Ensure signing keystore
run: |
KEYSTORE="$HOME/.android/debug.keystore"
if [ ! -f "$KEYSTORE" ]; then
mkdir -p "$HOME/.android"
keytool -genkeypair -v \
-keystore "$KEYSTORE" \
-alias androiddebugkey \
-keyalg RSA -keysize 2048 -validity 10000 \
-storepass android -keypass android \
-dname "CN=Android Debug,O=Android,C=US"
echo "Generated debug keystore"
else
echo "Keystore already exists"
fi
- name: Build Release APK
shell: bash
run: |