Read app version from built .ipa instead of hardcoding
Build VoidLink IPA / Build .ipa and publish source (push) Successful in 4m3s
Build VoidLink IPA / Build .ipa and publish source (push) Successful in 4m3s
The built app reports CFBundleShortVersionString 0.0.1 (MARKETING_VERSION), but metadata hardcoded 1.0, so SideStore rejected the version mismatch. Now read the version from the built app's Info.plist so it always matches.
This commit is contained in:
@@ -54,7 +54,10 @@ jobs:
|
|||||||
|
|
||||||
- name: Generate app metadata
|
- name: Generate app metadata
|
||||||
run: |
|
run: |
|
||||||
VERSION="1.0"
|
# Read the version from the built app so it always matches the .ipa
|
||||||
|
# (no hardcoded drift). CFBundleShortVersionString = MARKETING_VERSION.
|
||||||
|
VERSION=$(/usr/libexec/PlistBuddy -c "Print :CFBundleShortVersionString" \
|
||||||
|
build/VoidLink.xcarchive/Products/Applications/VoidLink.app/Info.plist)
|
||||||
SIZE=$(stat -f%z $APP_NAME.ipa)
|
SIZE=$(stat -f%z $APP_NAME.ipa)
|
||||||
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||||
# Per-app metadata file. The perlis aggregator folds this into the
|
# Per-app metadata file. The perlis aggregator folds this into the
|
||||||
|
|||||||
Reference in New Issue
Block a user