chore: reuse RELEASE_TOKEN for the APK store and fix check-patches.sh's signer set #128

Merged
midas merged 2 commits from chore/apk-store-release-token into dev 2026-10-18 08:45:54 +02:00
Owner

Follow-up to #126 (#79).

  • The store token falls back to RELEASE_TOKEN (APK_STORE_TOKEN / APK_STORE_WRITE_TOKEN still win when set). The patch check is split: patch-check.sh fetch (token, no bundle code) downloads the stored versions, patch-check.sh check (no token) patches them; apk-store.sh list lists the store.
  • Fix in check-patches.sh: under nullglob, ls <dir>/*Title.kt without a match listed the working directory, so for Videoland every hash in the repo (the DPG signers included) counted as expected. Now only the title's own files.
  • Fix: the python zip fallback (the runner has no zip) failed on pre-1980 timestamps of extracted APKs; it writes a fixed timestamp now.

Verified: seed_store dispatch on this branch verified and uploaded 11 versions (Edition 7.53.1/7.52.0, Kubus 9.22.0 + Gelderlander 9.21.1, AD 9.22.0, Videoland 1.116.4); local check phase from a cache: 15 Applied on Gelderlander 9.21.1; Videoland's expected signer set is now only its own hash.

🤖 Generated with Claude Code

Follow-up to #126 (#79). - The store token falls back to `RELEASE_TOKEN` (`APK_STORE_TOKEN` / `APK_STORE_WRITE_TOKEN` still win when set). The patch check is split: `patch-check.sh fetch` (token, no bundle code) downloads the stored versions, `patch-check.sh check` (no token) patches them; `apk-store.sh list` lists the store. - Fix in `check-patches.sh`: under `nullglob`, `ls <dir>/*Title.kt` without a match listed the working directory, so for Videoland every hash in the repo (the DPG signers included) counted as expected. Now only the title's own files. - Fix: the python zip fallback (the runner has no `zip`) failed on pre-1980 timestamps of extracted APKs; it writes a fixed timestamp now. Verified: `seed_store` dispatch on this branch verified and uploaded 11 versions (Edition 7.53.1/7.52.0, Kubus 9.22.0 + Gelderlander 9.21.1, AD 9.22.0, Videoland 1.116.4); local check phase from a cache: 15 Applied on Gelderlander 9.21.1; Videoland's expected signer set is now only its own hash. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The patch check now fetches the stored APKs in its own step (patch-check.sh fetch, which runs no
bundle code) and patches them in a step without any token, so the store token can fall back to
RELEASE_TOKEN without exposing it to the bundle's dependencies. app-update-check's report step,
which already holds RELEASE_TOKEN, uses it for uploads too. Dedicated APK_STORE_TOKEN /
APK_STORE_WRITE_TOKEN secrets still win when they exist. apk-store.sh gains `list`.

Refs #79

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore: keep check-patches.sh's expected signers to the app's own files and fix the python zip
All checks were successful
CI / Build (pull_request) Successful in 4m27s
CI / Patch check (pull_request) Successful in 2m50s
7ddee33a67
Under nullglob, `ls <dir>/*Title.kt` without a match listed the working directory, so for
Videoland (no *Title.kt) every 64-hex hash in the repository, the DPG signers included, counted
as an expected signer. The python fallback that repacks verified APKs for the APK store failed on
the extracted files' pre-1980 timestamps; it now writes a fixed timestamp.

Refs #79

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No description provided.