foodyou - retry until hash matches

This commit is contained in:
Licaon_Kter 2025-03-19 10:22:00 +00:00
parent a63afef77a
commit b862465162

View file

@ -30,12 +30,23 @@ Builds:
commit: 1.1.0
subdir: app
sudo:
- export CPUS_MAX=16
- export CPUS_MAX=6
- export CPUS=$(getconf _NPROCESSORS_ONLN)
- for (( c=$CPUS_MAX; c<$CPUS; c++ )) ; do echo 0 > /sys/devices/system/cpu/cpu$c/online
; done
gradle:
- yes
output: build/outputs/apk/release/*apk
prebuild: gradle clean
build:
- mkdir upstream
- pushd upstream
- curl -L -o upstream.apk https://github.com/maksimowiczm/FoodYou/releases/download/$$VERSION$$/food-you-$$VERSION$$.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/*.apk; export localhash=$(sha256sum
assets/dexopt/baseline.prof|cut -d " " -f1); [[ $localhash == $upstreamhash
]] && break ; popd; rm -fr local; done
AllowedAPKSigningKeys: cd74b0aedd8ead8184063a65909d639a8c885cf6465829690a9be83a8904bdea