From d149af336a32cab5df47d2879f38dab920449598 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 20 Oct 2026 09:18:42 -0700 Subject: [PATCH] iOS: keep older build numbers when regenerating the source Co-Authored-By: Claude Opus 5.5 --- ios/scripts/make-source.py | 8 +++++++- ios/source.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ios/scripts/make-source.py b/ios/scripts/make-source.py index 06e0732..a3f5dd9 100755 --- a/ios/scripts/make-source.py +++ b/ios/scripts/make-source.py @@ -19,7 +19,13 @@ def get(url): yml = open(os.path.join(HERE, "..", "project.yml")).read() -builds = {} # only the current build number is known locally; older ones fall back to the version +# Build numbers: older ones from the last source.json, the current one from project.yml. +builds = {} +try: + for v in json.load(open(os.path.join(HERE, "..", "source.json")))["apps"][0]["versions"]: + builds[v["version"]] = v["buildVersion"] +except (OSError, ValueError, KeyError, IndexError): + pass m = re.search(r'MARKETING_VERSION: "(.*)"', yml), re.search(r'CURRENT_PROJECT_VERSION: "(.*)"', yml) builds[m[0][1]] = m[1][1] diff --git a/ios/source.json b/ios/source.json index ff30beb..09eb2e5 100644 --- a/ios/source.json +++ b/ios/source.json @@ -26,7 +26,7 @@ }, { "version": "1.0.3", - "buildVersion": "1.0.3", + "buildVersion": "4", "date": "2026-10-20T09:08:18-07:00", "localizedDescription": "Bundle ID is now org.cdnutter.stemify (delete the old app first; settings won't carry over). IPA is named stemify-.ipa. Adds an AltStore/SideStore/Feather source.", "downloadURL": "https://git.iamchrisama.com/cdnutter/stemify/releases/download/ios-v1.0.3/stemify-1.0.3.ipa",