40ead9f75efb
feat: include version+ABI in APK filename via kepr.build {version}/{platform} tokens (v2.9.13)
- time
- 2026-07-31 00:06 UTC · 2 months ago
- machine
- koh2
- parent
- 65238bd4512a
↓ peach-android-40ead9f7.tar.gzatlas at this save
files changed4 files
VERSION+1 −1app/build.gradle+1 −1kepr.build+5 −3scripts/kepr-build-apk.sh+6 −3app/build.gradle+1 −1
@@ -32,7 +32,7 @@3232 minSdk 263333 targetSdk 353434 // Keep the Android code in Gradle; the semantic name comes from root VERSION.35- versionCode 24015835+ versionCode 2401593636 versionName semanticVersion3737 3838 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"kepr.build+5 −3
@@ -1,9 +1,11 @@11 # Kepr Builds config for peach-android.22 #33 # Koh runs the command once per platform with KEPR_TARGET set. The script stages4-# the matching signed split APK at the fixed output path. These keys must match5-# UpdateManifest.kt and Kepr's release_platforms allowlist.4+# each signed split APK at a path built from `{version}` and `{platform}` so5+# every published APK carries its own SemVer + ABI in the download filename.6+# The platform keys must match UpdateManifest.kt and Kepr's release_platforms7+# allowlist.68 command = ./scripts/kepr-build-apk.sh7-output = build/kepr/peach-android.apk9+output = build/kepr/peach-android-{version}-{platform}.apk810 trigger = manual911 platforms = android-arm64, android-x86scripts/kepr-build-apk.sh+6 −3
@@ -146,7 +146,10 @@146146 exit 1147147 fi148148 149-# Only a fully verified artifact reaches the Kepr staging directory.149+# Only a fully verified artifact reaches the Kepr staging directory. The150+# basename includes SemVer + ABI so Kepr's Content-Disposition carries both151+# to the browser, matching the {version}/{platform} tokens in kepr.build.150152 mkdir -p "$ROOT_DIR/build/kepr"151-cp "$APK" "$ROOT_DIR/build/kepr/peach-android.apk"152-echo "release APK verified and staged: build/kepr/peach-android.apk"153+STAGED_NAME="peach-android-${ROOT_VERSION}-${KEPR_TARGET}.apk"154+cp "$APK" "$ROOT_DIR/build/kepr/$STAGED_NAME"155+echo "release APK verified and staged: build/kepr/$STAGED_NAME"