Pipeline YouTube con relay, overlay e publisher sync lato backend; fix GL pauseGlDuringRotation su Android per evitare crash in rotazione durante lo streaming Flutter. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
441 B
Bash
Executable File
16 lines
441 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# APK release per telefono → API produzione
|
|
set -euo pipefail
|
|
export PATH="${HOME}/flutter/bin:${PATH}"
|
|
|
|
API_BASE_URL="${API_BASE_URL:-https://www.matchlivetv.it}"
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
|
|
cd "$ROOT/mobile"
|
|
flutter pub get
|
|
flutter build apk --release \
|
|
--dart-define="API_BASE_URL=${API_BASE_URL}"
|
|
|
|
echo "APK: mobile/build/app/outputs/flutter-apk/app-release.apk"
|
|
echo "API_BASE_URL=${API_BASE_URL}"
|