From 925be8e9eba723cd672ce54ee7e187b58a7c53fa Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Wed, 28 Jan 2026 12:18:10 +0100 Subject: [PATCH] Update fdroid scripts --- apps/mobile-app/android/fdroid/.gitignore | 2 ++ apps/mobile-app/android/fdroid/scripts/sign-apk.sh | 8 ++++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/apps/mobile-app/android/fdroid/.gitignore b/apps/mobile-app/android/fdroid/.gitignore index e8a47d513..f96d91270 100644 --- a/apps/mobile-app/android/fdroid/.gitignore +++ b/apps/mobile-app/android/fdroid/.gitignore @@ -1,3 +1,5 @@ fdroiddata fdroidserver net.aliasvault.app.yml +*.apk +*.idsig diff --git a/apps/mobile-app/android/fdroid/scripts/sign-apk.sh b/apps/mobile-app/android/fdroid/scripts/sign-apk.sh index 77341f053..9b5934090 100755 --- a/apps/mobile-app/android/fdroid/scripts/sign-apk.sh +++ b/apps/mobile-app/android/fdroid/scripts/sign-apk.sh @@ -25,8 +25,12 @@ error() { echo -e "${RED}[ERROR]${RESET} $1"; } echo -e "${YELLOW}=== APK Debug Signer (macOS) ===${RESET}" -# --- Ask for unsigned APK --- -read -rp "Enter unsigned APK filename (example: app-release-unsigned.apk): " APK_IN +# --- Unsigned APK: from argument or prompt --- +if [[ -n "${1:-}" ]]; then + APK_IN="$1" +else + read -rp "Enter unsigned APK filename (example: app-release-unsigned.apk): " APK_IN +fi if [[ ! -f "$APK_IN" ]]; then error "File not found: $APK_IN"