fix: macOS sed로 APK versionName 파싱
BSD sed는 \\s를 지원하지 않아 .env에 잘못된 버전이 기록되던 문제를 수정한다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,7 +32,7 @@ chmod +x "$ROOT/scripts/"*.sh 2>/dev/null || true
|
||||
|
||||
"$ROOT/scripts/build-mobile-apk.sh"
|
||||
|
||||
VERSION_NAME="$(grep -E 'versionName\s+"' "$ROOT/app/android/app/build.gradle" | head -1 | sed -E 's/.*versionName\s+"([^"]+)".*/\1/' || true)"
|
||||
VERSION_NAME="$(grep -E 'versionName[[:space:]]+"' "$ROOT/app/android/app/build.gradle" | head -1 | sed -E 's/.*versionName[[:space:]]+"([^"]+)".*/\1/' || true)"
|
||||
|
||||
if [[ -n "$VERSION_NAME" ]]; then
|
||||
log "APK version → $VERSION_NAME"
|
||||
|
||||
Reference in New Issue
Block a user