Skip to content

Instantly share code, notes, and snippets.

@obfusk
Last active January 28, 2023 04:17
Show Gist options
  • Select an option

  • Save obfusk/0af449cab2eab8fea73d71bd4dc5caca to your computer and use it in GitHub Desktop.

Select an option

Save obfusk/0af449cab2eab8fea73d71bd4dc5caca to your computer and use it in GitHub Desktop.
check RB by comparing sha256sum of unsigned APK against upstream

Remove

gradle:
  - yes

Add

output: build/outputs/apk/release/app-release-unsigned.apk
prebuild: gradle clean
build:
  - gradle assembleRelease
  - sha256sum="$( curl -L https://github.com/CatimaLoyalty/Android/releases/download/v$$VERSION$$/SHA256SUMS | grep -F unsigned | cut -c-64 | tr -cd '0-9a-f' )"
  - sha256sum -c <<< "$sha256sum  build/outputs/apk/release/app-release-unsigned.apk"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment