rush - loop until baseline hash matches

This commit is contained in:
Licaon_Kter 2024-11-12 15:49:39 +00:00
parent 926a668dfa
commit 79199d4908

View file

@ -125,8 +125,18 @@ Builds:
versionCode: 236
commit: 620b55345a45a292e6f5e36b5ba4f3d5e191e3f3
subdir: app
gradle:
- yes
output: build/outputs/apk/release/app-release-unsigned.apk
build:
- mkdir upstream
- pushd upstream
- curl -L -o upstream.apk https://github.com/shub39/Rush/releases/download/$$VERSION$$/app-release.apk
- unzip -q upstream.apk
- export upstreamhash=$(sha256sum assets/dexopt/baseline.prof|cut -d " " -f1)
- popd
- for i in {1..10}; do gradle clean assembleRelease; mkdir local; pushd local;
unzip -q ../build/outputs/apk/release/app-release-unsigned.apk; export localhash=$(sha256sum
assets/dexopt/baseline.prof|cut -d " " -f1); [[ $localhash == $upstreamhash
]] && break ; popd; rm -fr local; done
AllowedAPKSigningKeys: 0fe1b9f44a4db97ec50948f5189f6b4300716cc6d4843f5698d614a2152e2188