diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 5dfa37ee..8f7eba69 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -54,7 +54,10 @@ jobs: - name: Generate app metadata 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) DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") # Per-app metadata file. The perlis aggregator folds this into the