[#1203] fix ios version and buildVersion

version should be CFBundleShortVersionString
buildVersion should be CFBundleVersion
details: https://faq.altstore.io/developers/make-a-source#version-string
This commit is contained in:
Eva committed 2026-07-23 00:24:08 +02:00
1 parent 8781e83a09
commit 60f3d0ebef
1 file changed
+7 -2
+7 -2
View File
@@ -485,11 +485,15 @@ jobs:
NORMALIZED_IPA="$(dirname "$IPA")/Sable-${VERSION}-ios-arm64.ipa"
[ "$IPA" = "$NORMALIZED_IPA" ] || mv "$IPA" "$NORMALIZED_IPA"
IPA="$NORMALIZED_IPA"
IPA_VERSION="$(unzip -p "$IPA" 'Payload/*.app/Info.plist' 2>/dev/null | plutil -extract CFBundleVersion raw -o - - 2>/dev/null || true)"
unzip -p "$IPA" 'Payload/*.app/Info.plist' >Info.plist
# version - CFBundleShortVersionString, buildVersion - CFBundleVersion : https://faq.altstore.io/developers/make-a-source#app-versions
IPA_VERSION="$(plutil -extract CFBundleShortVersionString raw -o - Info.plist 2>/dev/null || true)"
IPA_BUILD="$(plutil -extract CFBundleVersion raw -o - Info.plist 2>/dev/null || true)"
echo "size=$(stat -f%z "$IPA")" >> "$GITHUB_OUTPUT"
echo "path=$IPA" >> "$GITHUB_OUTPUT"
echo "name=$(basename "$IPA")" >> "$GITHUB_OUTPUT"
echo "ipa_version=${IPA_VERSION:-$VERSION}" >> "$GITHUB_OUTPUT"
echo "ipa_build=${IPA_BUILD:-$VERSION}" >> "$GITHUB_OUTPUT"
- name: Attest iOS bundle
uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v4.1.0
@@ -508,6 +512,7 @@ jobs:
GH_TOKEN: ${{ github.token }}
REPO: ${{ github.repository }}
ALTSTORE_VERSION: ${{ steps.ipa.outputs.ipa_version }}
ALTSTORE_VERSION_BUILD: ${{ steps.ipa.outputs.ipa_build }}
run: |
DOWNLOAD_URL="https://github.com/$REPO/releases/download/$TAG/${{ steps.ipa.outputs.name }}"
DATE="$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
@@ -517,7 +522,7 @@ jobs:
echo "Using repo altstore-source.json"
fi
node .github/scripts/update-altstore-source.mjs \
altstore-source.json "${ALTSTORE_VERSION:-$VERSION}" "${ALTSTORE_VERSION:-$VERSION}" "${{ steps.ipa.outputs.size }}" "$DOWNLOAD_URL" "$DATE" "Sable $VERSION"
altstore-source.json "${ALTSTORE_VERSION:-$VERSION}" "${ALTSTORE_VERSION_BUILD:-$VERSION}" "${{ steps.ipa.outputs.size }}" "$DOWNLOAD_URL" "$DATE" "Sable $VERSION"
gh release upload "$TAG" altstore-source.json --clobber
updater-manifest: