diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 28a663e9..0fd1636c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -97,7 +97,7 @@ jobs: echo "APK signature:" certs=$(nix develop --command bash -c '"$ANDROID_HOME/build-tools/37.0.0/apksigner" verify --print-certs subtracks.apk') printf '%s\n' "$certs" - fingerprint=$(printf '%s\n' "$certs" | sed -n 's/.*certificate SHA-256 digest: //p' | head -1) + fingerprint=$(printf '%s\n' "$certs" | sed -n 's/.*certificate SHA-256 digest: //p' | head -1 | tr '[:lower:]' '[:upper:]' | sed 's/\(..\)/\1:/g; s/:$//') echo "fingerprint=$fingerprint" >> "$GITHUB_OUTPUT" - name: Compose release notes run: | diff --git a/signing/README.md b/signing/README.md index 4578ddba..1cb51d9c 100644 --- a/signing/README.md +++ b/signing/README.md @@ -7,6 +7,8 @@ subtracks ships through four channels: - **F-Droid** — re-signed by F-Droid with its own key; see [F-Droid's signing keys](https://f-droid.org/docs/Release_Channels_and_Signing_Keys/). - **`nightly` builds** (the `subtracks-nightly` artifact from CI) — signed with the public debug key committed at [`app/debug.keystore`](../app/debug.keystore), whose certificate is [`nightly-certificate.pem`](nightly-certificate.pem). +Fingerprints below are written in `keytool`'s colon-separated uppercase form. `apksigner` prints the same digest as lowercase hex with no colons, so compare them ignoring colons and case. + ## GitHub releases The APK and the AAB are signed with the release key. Certificate SHA-256: