正式上线"自定义线路"功能(仅限付费用户组)

This commit is contained in:
2026-06-04 11:10:44 +08:00
parent 42db3f9683
commit 33509de4e3
2 changed files with 578 additions and 22 deletions
+8 -1
View File
@@ -140,6 +140,8 @@ jobs:
- name: Build Android release APK
shell: bash
env:
IP_NODE_API_BASE_URL: ${{ secrets.IP_NODE_API_BASE_URL }}
run: |
set -euo pipefail
@@ -151,8 +153,13 @@ jobs:
rm -rf "$pkg_dir"
fi
build_args=(--release)
if [ -n "${IP_NODE_API_BASE_URL:-}" ]; then
build_args+=("--dart-define=IP_NODE_API_BASE_URL=${IP_NODE_API_BASE_URL}")
fi
echo "Building Flutter Android release APK..."
flutter build apk -v --release
flutter build apk "${build_args[@]}"
mkdir -p "$pkg_dir"
apk_path="$(find "$PWD/build/app/outputs" -type f -name '*release*.apk' | head -n 1)"