Release signing fix + Obtainium install guide + publish script
Some checks failed
build-apk / build (push) Failing after 5m9s

- Fix withReleaseSigning: RN template's unconditional debug signingConfig was
  overriding the release key. Now uses the release key when BBP_UPLOAD_* is set
  (verified: APK signed CN=BigBrainParking), else debug.
- INSTALL.md: dead-simple Obtainium setup (one-tap obtainium:// link + manual
  Forgejo-source steps). README links it.
- scripts/publish-release.sh: create a Forgejo release + upload the signed APK.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Hank 2026-07-07 13:27:19 -07:00
parent a5bfec894e
commit a8ba1fcae4
5 changed files with 94 additions and 3 deletions

View file

@ -33,10 +33,12 @@ module.exports = function withReleaseSigning(config) {
/signingConfigs \{/,
`signingConfigs {${SIGNING_BLOCK}`,
);
// 2) Point the release buildType at it *only* when the keystore env is set.
// 2) Point the release buildType at the release key when its env is set, else
// debug. Replace the RN template's unconditional debug line inside the
// release {} block (otherwise it overrides the release config).
gradle = gradle.replace(
/(buildTypes \{[\s\S]*?release \{)/,
`$1\n if (System.getenv("BBP_UPLOAD_STORE_FILE") != null) { signingConfig signingConfigs.release }`,
/(release \{[\s\S]*?)signingConfig signingConfigs\.debug/,
`$1signingConfig System.getenv("BBP_UPLOAD_STORE_FILE") != null ? signingConfigs.release : signingConfigs.debug`,
);
}