1
0
forked from firka/firka

Jenkinsfile: transform apk on f-droid builds

This commit is contained in:
2025-08-30 10:05:30 +02:00
parent 7b74d0dd1b
commit d4dcf1419c
2 changed files with 32 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ if [ "$1" = "main" ]; then
mkdir -p build/app/tmp
update_version_for_abi 1000
flutter build apk --release --tree-shake-icons \
TRANSFORM_APK=true flutter build apk --release --tree-shake-icons \
--local-engine-src-path "$sdk_path/engine/src" \
--local-engine=android_release --local-engine-host=host_release \
--split-per-abi \
@@ -32,7 +32,7 @@ if [ "$1" = "main" ]; then
mv build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk build/app/tmp/
update_version_for_abi 2000
flutter build apk --release --tree-shake-icons \
TRANSFORM_APK=true flutter build apk --release --tree-shake-icons \
--local-engine-src-path "$sdk_path/engine/src" \
--local-engine=android_release_arm64 --local-engine-host=host_release \
--split-per-abi \
@@ -40,7 +40,7 @@ if [ "$1" = "main" ]; then
mv build/app/outputs/flutter-apk/app-arm64-v8a-release.apk build/app/tmp/
update_version_for_abi 3000
flutter build apk --release --tree-shake-icons \
TRANSFORM_APK=true flutter build apk --release --tree-shake-icons \
--local-engine-src-path "$sdk_path/engine/src" \
--local-engine=android_release_x64 --local-engine-host=host_release \
--split-per-abi \
@@ -57,4 +57,4 @@ if [ "$1" = "main" ]; then
else
update_version_for_abi 0
TRANSFORM_APK=true flutter build apk --debug --target-platform android-arm,android-arm64,android-x64
fi
fi