Copia AAB/APK di release in native/android/dist con nome versionato.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-20 16:53:53 +02:00
co-authored by Cursor
parent c9b75065bc
commit 79c48b226e
2 changed files with 18 additions and 1 deletions
+9 -1
View File
@@ -10,6 +10,14 @@ chmod +x gradlew
./gradlew clean bundleProdRelease -PAPI_BASE_URL="$API_BASE_URL"
AAB="$ANDROID_DIR/app/build/outputs/bundle/prodRelease/app-prod-release.aab"
VERSION_NAME=$(grep -E '^\s*versionName\s*=' app/build.gradle.kts | head -1 | sed -E 's/.*"([^"]+)".*/\1/')
VERSION_CODE=$(grep -E '^\s*versionCode\s*=' app/build.gradle.kts | head -1 | sed -E 's/.*=\s*([0-9]+).*/\1/')
DIST_DIR="$ANDROID_DIR/dist"
mkdir -p "$DIST_DIR"
DIST_AAB="$DIST_DIR/MatchLiveTV-${VERSION_NAME}-${VERSION_CODE}.aab"
cp -f "$AAB" "$DIST_AAB"
echo "AAB: $AAB"
echo "DIST: $DIST_AAB"
echo "API_BASE_URL=$API_BASE_URL"
ls -lh "$AAB"
ls -lh "$DIST_AAB"
+9
View File
@@ -9,5 +9,14 @@ chmod +x gradlew
./gradlew assembleProdRelease -PAPI_BASE_URL="$API_BASE_URL"
APK="$ANDROID_DIR/app/build/outputs/apk/prod/release/app-prod-release.apk"
VERSION_NAME=$(grep -E '^\s*versionName\s*=' app/build.gradle.kts | head -1 | sed -E 's/.*"([^"]+)".*/\1/')
VERSION_CODE=$(grep -E '^\s*versionCode\s*=' app/build.gradle.kts | head -1 | sed -E 's/.*=\s*([0-9]+).*/\1/')
DIST_DIR="$ANDROID_DIR/dist"
mkdir -p "$DIST_DIR"
DIST_APK="$DIST_DIR/MatchLiveTV-${VERSION_NAME}-${VERSION_CODE}.apk"
cp -f "$APK" "$DIST_APK"
echo "APK: $APK"
echo "DIST: $DIST_APK"
echo "API_BASE_URL=$API_BASE_URL"
ls -lh "$DIST_APK"