This commit is contained in:
zhutao
2025-12-01 16:00:16 +08:00
parent c67bc730af
commit f5ce40063f
14 changed files with 66 additions and 31 deletions

View File

@@ -11,7 +11,7 @@ declare -a APP_CHANNELS=("release")
# 遍历每个环境配置并执行构建
for index in "${APP_CHANNELS[@]}"; do
ENV=${APP_CHANNELS[$index]}
flutter build apk -Penv=prod -Pchannel=$ENV
flutter build apk -Penv=prod -Pchannel=$ENV --dart-define=ENV=prod
# 检查构建是否成功
if [ $? -ne 0 ]; then
echo "Build failed for ENV=$ENV"