dist: prepare unsigned F-Droid build output

This commit is contained in:
SkateSpots 2026-10-30 23:07:42 +07:00
parent 72e5f89b49
commit 4ae30ee8e6

View file

@ -34,9 +34,12 @@ Builds:
- npm ci - npm ci
- npm run android:init - npm run android:init
- npm run android:sync - npm run android:sync
# F-Droid signs the APK itself. Remove the developer signing config so
# Gradle emits an unsigned release APK instead of requiring the keystore.
- sed -i '/signingConfig signingConfigs.release/d' android/app/build.gradle
build: build:
- cd android && ./gradlew assembleRelease --no-daemon - cd android && ./gradlew assembleRelease --no-daemon
output: android/app/build/outputs/apk/release/app-release.apk output: android/app/build/outputs/apk/release/app-release-unsigned.apk
# The generated Android project is intentionally not committed. This # The generated Android project is intentionally not committed. This
# recipe recreates it with Capacitor before Gradle runs. F-Droid will sign # recipe recreates it with Capacitor before Gradle runs. F-Droid will sign
# the resulting APK with its own key. The F-Droid buildserver supplies the # the resulting APK with its own key. The F-Droid buildserver supplies the