Skip to content

Commit f33c0d4

Browse files
authored
Merge pull request #35 from v2er-app/bugfix/release-workflow-version-detection
fix: release workflow version detection for Linux
2 parents 87dafac + b690b6c commit f33c0d4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ jobs:
3838
- name: Check version and create tag if needed
3939
id: check
4040
run: |
41-
# Get current version from Info.plist using plutil for robust XML parsing
42-
CURRENT_VERSION=$(/usr/bin/plutil -extract CFBundleShortVersionString xml1 -o - V2er/Info.plist | grep '<string>' | sed 's/.*<string>\(.*\)<\/string>.*/\1/' | xargs)
43-
CURRENT_BUILD=$(/usr/bin/plutil -extract CFBundleVersion xml1 -o - V2er/Info.plist | grep '<string>' | sed 's/.*<string>\(.*\)<\/string>.*/\1/' | xargs)
41+
# Get current version from project.pbxproj (works on Linux)
42+
CURRENT_VERSION=$(grep -m1 'MARKETING_VERSION = ' V2er.xcodeproj/project.pbxproj | sed 's/.*MARKETING_VERSION = \(.*\);/\1/' | xargs)
43+
CURRENT_BUILD=$(grep -m1 'CURRENT_PROJECT_VERSION = ' V2er.xcodeproj/project.pbxproj | sed 's/.*CURRENT_PROJECT_VERSION = \(.*\);/\1/' | xargs)
4444
4545
echo "Current version: $CURRENT_VERSION (build $CURRENT_BUILD)"
4646

0 commit comments

Comments
 (0)