ci: build split arm64 apk

This commit is contained in:
2026-08-21 14:00:40 +08:00
parent a1433f1f4e
commit 5215ea2ea8
2 changed files with 4 additions and 18 deletions
Vendored
+4 -3
View File
@@ -163,13 +163,14 @@ PY
retry(3) {
sh '''
set -euo pipefail
JIZHANG_ANDROID_ABIS=arm64-v8a "$FLUTTER_ROOT/bin/flutter" build apk \
--flavor internal --release --target-platform android-arm64 \
"$FLUTTER_ROOT/bin/flutter" build apk \
--flavor internal --release --target-platform android-arm64 --split-per-abi \
--build-name "$APP_VERSION" --build-number "$ANDROID_VERSION_CODE" \
--dart-define=INTERNAL_BUILD=true \
--dart-define="API_BASE_URL=$API_BASE_URL" \
--dart-define="APP_VERSION=$IMMUTABLE_TAG"
source_apk=build/app/outputs/flutter-apk/app-internal-release.apk
source_apk=$(find build/app/outputs/flutter-apk -maxdepth 1 -type f \
-name '*arm64-v8a*internal*release.apk' -print -quit)
test -s "$source_apk"
cp "$source_apk" "$APK_PATH"
'''