wifiwidget - limit cores, retry until hash matches

This commit is contained in:
Licaon_Kter 2024-11-25 15:46:55 +00:00
parent 61dc014a78
commit e2700b0950

View file

@ -297,10 +297,23 @@ Builds:
versionCode: 63
commit: 6e7b7d132b7e851bc020ff733398000d7e354a3a
subdir: app
gradle:
- yes
scandelete:
- plugins
sudo:
- 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
output: build/outputs/apk/release/$$VERSION$$.apk
build:
- mkdir upstream
- pushd upstream
- curl -L -o upstream.apk https://github.com/w2sv/WiFi-Widget/releases/download/$$VERSION$$/$$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: e22bed7909bce21fa5bc900a8c056eaa0773761f70774d1d808bbbafb3aa1958