From 7f421470b2ebc23ae5c31a0eb9fc111a43c6624b Mon Sep 17 00:00:00 2001 From: austinried <4966622+austinried@users.noreply.github.com> Date: Thu, 8 Oct 2026 19:23:56 +0000 Subject: [PATCH] release: gzip the R8 mapping before attaching it --- .github/workflows/release.yml | 3 ++- signing/README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14fb2f9e..52241936 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,6 +108,7 @@ jobs: run: | cp dist/apk/release/app-release.apk subtracks.apk cp dist/bundle/release/app-release.aab subtracks.aab + gzip -n -9 -c dist/mapping/release/mapping.txt > mapping.txt.gz sha256sum subtracks.apk subtracks.aab > SHA256SUMS echo "Artifact SHA-256:" sha256sum subtracks.apk subtracks.aab @@ -144,4 +145,4 @@ jobs: if [ "${{ steps.stable.outputs.value }}" != "true" ]; then args+=(--prerelease) fi - gh release create "$GITHUB_REF_NAME" subtracks.apk subtracks.aab SHA256SUMS dist/release-certificate.pem dist/mapping/release/mapping.txt "${args[@]}" + gh release create "$GITHUB_REF_NAME" subtracks.apk subtracks.aab SHA256SUMS dist/release-certificate.pem mapping.txt.gz "${args[@]}" diff --git a/signing/README.md b/signing/README.md index 4f6e44db..ee36d9a9 100644 --- a/signing/README.md +++ b/signing/README.md @@ -18,7 +18,7 @@ The APK and the AAB are signed with the release key. Certificate SHA-256: 02da2cb7b8214e53bdbfb455698dcb965222f91c954b5210aeac96fe329c8f01 ``` -Each release attaches the APK, the AAB, the checksums, the certificate (committed here as [`release-certificate.pem`](release-certificate.pem)) and the R8 `mapping.txt`: +Each release attaches the APK, the AAB, the checksums, the certificate (committed here as [`release-certificate.pem`](release-certificate.pem)) and the gzipped R8 `mapping.txt.gz`: ```sh sha256sum -c SHA256SUMS