@echo off REM 生产环境构建脚本 (Windows) echo ======================================== echo Building AI English Learning App for Production echo ======================================== echo. :menu echo Please select build target: echo 1. Android APK echo 2. Android App Bundle (AAB) echo 3. iOS echo 4. Web echo 5. Windows echo 6. Exit echo. set /p choice=Enter your choice (1-6): if "%choice%"=="1" goto android_apk if "%choice%"=="2" goto android_aab if "%choice%"=="3" goto ios if "%choice%"=="4" goto web if "%choice%"=="5" goto windows if "%choice%"=="6" goto end echo Invalid choice. Please try again. echo. goto menu :android_apk echo. echo Building Android APK... flutter build apk --dart-define=ENVIRONMENT=production --release echo. echo Build completed! APK location: echo build\app\outputs\flutter-apk\app-release.apk echo. pause goto end :android_aab echo. echo Building Android App Bundle... flutter build appbundle --dart-define=ENVIRONMENT=production --release echo. echo Build completed! AAB location: echo build\app\outputs\bundle\release\app-release.aab echo. pause goto end :ios echo. echo Building iOS... flutter build ios --dart-define=ENVIRONMENT=production --release echo. echo Build completed! Please open Xcode to archive and distribute. echo. pause goto end :web echo. echo Building Web... flutter build web --dart-define=ENVIRONMENT=production --release echo. echo Build completed! Web files location: echo build\web echo. pause goto end :windows echo. echo Building Windows... flutter build windows --dart-define=ENVIRONMENT=production --release echo. echo Build completed! Windows executable location: echo build\windows\runner\Release echo. pause goto end :end exit