misc fixes

This commit is contained in:
linsui 2025-04-23 19:36:17 +08:00
parent 6cc2065517
commit 0c9f812cb5
4 changed files with 28 additions and 0 deletions

View file

@ -599,6 +599,11 @@ Builds:
versionCode: 38300
commit: d3d70ab2e7462877f2e700ac7fc52a2253030ac2
subdir: app
sudo:
- export CPUS_MAX=16
- export CPUS=$(getconf _NPROCESSORS_ONLN)
- for (( c=$CPUS_MAX; c<$CPUS; c++ )) ; do echo 0 > /sys/devices/system/cpu/cpu$c/online
; done
gradle:
- fdroid
prebuild:
@ -606,6 +611,14 @@ Builds:
build.gradle.kts
- sed -i -e '/libs.google.services/d' -e '/libs.firebase/d' ../build.gradle.kts
- sed -i -e '/gitea.zaneschepke.com/d' ../settings.gradle.kts
postbuild:
- curl -Lo upstream.apk https://github.com/zaneschepke/wgtunnel/releases/download/$$VERSION$$/wgtunnel-fdroid-release-$$VERSION$$.apk
- unzip -q upstream.apk -d apk
- export hash=$(sha256sum apk/assets/dexopt/baseline.prof)
- rm -rf apk upstream.apk
- for i in {1..10}; do unzip -q $$OUT$$ -d apk; sha256sum -c - <<< $hash &&
break; sha256sum apk/assets/dexopt/baseline.prof; rm -fr apk; gradle clean
assembleFdroidRelease; done
AllowedAPKSigningKeys: 5204d82e766e8aa14dcbb06dc70aebae2bdd812d4d6203cd521a8a685d7d3d80

View file

@ -18,8 +18,21 @@ Builds:
versionCode: 301
commit: 018a4d844d353f2b379f7a74849ecae94f9e21a7
subdir: app
sudo:
- export CPUS_MAX=16
- export CPUS=$(getconf _NPROCESSORS_ONLN)
- for (( c=$CPUS_MAX; c<$CPUS; c++ )) ; do echo 0 > /sys/devices/system/cpu/cpu$c/online
; done
gradle:
- githubRelease
postbuild:
- curl -Lo upstream.apk https://github.com/jensomato/ReadeckApp/releases/download/v$$VERSION$$/ReadeckApp-$$VERSION$$.apk
- unzip -q upstream.apk -d apk
- export hash=$(sha256sum apk/assets/dexopt/baseline.prof)
- rm -rf apk upstream.apk
- for i in {1..10}; do unzip -q $$OUT$$ -d apk; sha256sum -c - <<< $hash &&
break; sha256sum apk/assets/dexopt/baseline.prof; rm -fr apk; gradle clean
assembleGithubReleaseRelease; done
AllowedAPKSigningKeys: 534f1f1c839a179258a2eb413c756aa601a69e79e1354783b681c51076e81060

View file

@ -163,6 +163,7 @@ Builds:
subdir: app
gradle:
- lite
prebuild: gradle buildDictionaryDownloads || gradle buildDictionaryDownloads
AllowedAPKSigningKeys: 57f09ab8dcfedbb63fa309362fedbbb0d8026cada8b2dc78ff00057f98c6020b

View file

@ -454,6 +454,7 @@ Builds:
submodules: true
output: build/app/outputs/apk/release/app-release-unsigned.apk
prebuild:
- sed -i -e 's/Xmx.*/Xmx4g/' android/gradle.properties
- export PUB_CACHE=$(pwd)/.pub-cache
- .flutter/bin/flutter config --no-analytics
- .flutter/bin/flutter pub get