From 6e340b6d6a075bdf1a49eca5fe3778f8e2918073 Mon Sep 17 00:00:00 2001 From: hermes-agent Date: Fri, 28 Aug 2026 22:58:03 +0000 Subject: [PATCH] Read app version from built .ipa instead of hardcoding 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. --- .gitea/workflows/build.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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