构建环境镜像添加

This commit is contained in:
2026-06-04 18:17:10 +08:00
parent e6c60a9d6d
commit db10873aaf
2 changed files with 18 additions and 6 deletions
+7 -3
View File
@@ -12,6 +12,10 @@ permissions:
contents: write
releases: write
env:
PUB_HOSTED_URL: https://pub.flutter-io.cn
FLUTTER_STORAGE_BASE_URL: https://storage.flutter-io.cn
jobs:
android:
name: Build Android APK
@@ -113,7 +117,7 @@ jobs:
flutter doctor -v
- name: Install dependencies
run: flutter pub get
run: flutter pub get --enforce-lockfile
- name: Restore Android signing files
shell: bash
@@ -145,7 +149,7 @@ jobs:
run: |
set -euo pipefail
rm -rf build dist .dart_tool android/.gradle
rm -rf build dist android/.gradle
pkg_dir="$PWD/dist/android"
if [ -d "$pkg_dir" ]; then
@@ -153,7 +157,7 @@ jobs:
rm -rf "$pkg_dir"
fi
build_args=(--release)
build_args=(--release --no-pub)
if [ -n "${IP_NODE_API_BASE_URL:-}" ]; then
build_args+=("--dart-define=IP_NODE_API_BASE_URL=${IP_NODE_API_BASE_URL}")
fi