Sign Android APKs with a fixed repository keystore
The Android workflow generated a new throwaway keystore on every run, so every APK had a different signature and Android refused to install it over the previous build. Load the release keystore from ANDROID_KEYSTORE_BASE64, validate it with keytool, and sign assembleRelease with the PKCS12 store type plus ANDROID_KEYSTORE_PASSWORD, ANDROID_KEY_ALIAS and ANDROID_KEY_PASSWORD. Fail the build when any secret is missing instead of falling back to a random key, and remove the temporary keystore afterwards. Document the one-time keystore and secret setup, and ignore *.jks and *.keystore so private keys cannot be committed. The first fixed-signature APK needs one uninstall because the installed APK was signed by the old throwaway key; later builds install as updates.
This commit is contained in:
1 parent
11b353e9b1
commit
e5954169b2
3 files changed
+65
-14
No files matched your search
@@ -4,6 +4,8 @@ dist/
|
||||
*.log
|
||||
*.log.1
|
||||
*.zip
|
||||
*.jks
|
||||
*.keystore
|
||||
*.wav
|
||||
HRTF/
|
||||
*.sofa
|
||||
|
||||
Reference in new issue
Block a user