mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-07-22 05:44:54 +00:00
wifiwidget - limit cores, retry until hash matches
This commit is contained in:
parent
61dc014a78
commit
e2700b0950
1 changed files with 17 additions and 4 deletions
|
|
@ -297,10 +297,23 @@ Builds:
|
||||||
versionCode: 63
|
versionCode: 63
|
||||||
commit: 6e7b7d132b7e851bc020ff733398000d7e354a3a
|
commit: 6e7b7d132b7e851bc020ff733398000d7e354a3a
|
||||||
subdir: app
|
subdir: app
|
||||||
gradle:
|
sudo:
|
||||||
- yes
|
- export CPUS_MAX=6
|
||||||
scandelete:
|
- export CPUS=$(getconf _NPROCESSORS_ONLN)
|
||||||
- plugins
|
- 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
|
AllowedAPKSigningKeys: e22bed7909bce21fa5bc900a8c056eaa0773761f70774d1d808bbbafb3aa1958
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue