Copia AAB/APK di release in native/android/dist con nome versionato.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user