87e0ef13b5b1

restore established Android release signing for Beta updates (v2.15.4)

time
2026-09-05 23:03 UTC · 1 month ago
machine
koh2
agent
claude-opus-5
session
restore Android release signing
parent
28e0803dbf68
2 files app/build.gradle+20 −1scripts/kepr-build-apk.sh+4 −4
app/build.gradle+20 −1
@@ -67,10 +67,29 @@6767             minifyEnabled true6868             shrinkResources true6969             proguardFiles getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro"70+            signingConfig signingConfigs.release7071         }7172     }7273 73-    // Beta Kepr builds remain unsigned until Play Store signing becomes the release authority.74+    signingConfigs {75+        release {76+            def props = new Properties()77+            def localPropertiesFile = rootProject.file("local.properties")78+            if (localPropertiesFile.isFile()) {79+                localPropertiesFile.withInputStream { props.load(it) }80+            }81+            if (props.getProperty("peachStoreFile")) {82+                storeFile file(props.getProperty("peachStoreFile"))83+                storePassword props.getProperty("peachStorePassword")84+                keyAlias props.getProperty("peachKeyAlias")85+                keyPassword props.getProperty("peachKeyPassword")86+            }87+            enableV2Signing true88+            enableV3Signing true89+        }90+    }91+92+    // Kepr Beta APKs use the established certificate so installed users can update.7493 7594     compileOptions {7695         sourceCompatibility JavaVersion.VERSION_17

view file

scripts/kepr-build-apk.sh+4 −4
@@ -1,8 +1,8 @@11 #!/bin/sh22 # Build and publish the release APK for Kepr Builds.33 #4-# The temporary Kepr path emits unsigned APKs. It still validates the produced5-# APK's package, version, and ABI before copying anything to the staging directory.4+# Kepr Beta builds use the established release certificate. Validate the produced5+# APK's package, version, ABI, and signing identity before staging it.66 set -eu77 88 JAVA_HOME="/opt/homebrew/opt/openjdk@17/libexec/openjdk.jdk/Contents/Home"@@ -49,11 +49,11 @@4949 5050 case "${KEPR_TARGET:-}" in5151     android-arm64)52-        APK_NAME="app-arm64-v8a-release-unsigned.apk"52+        APK_NAME="app-arm64-v8a-release.apk"5353         EXPECTED_ABI="arm64-v8a"5454         ;;5555     android-x86)56-        APK_NAME="app-x86_64-release-unsigned.apk"56+        APK_NAME="app-x86_64-release.apk"5757         EXPECTED_ABI="x86_64"5858         ;;5959     *)

view file