iOS: keep older build numbers when regenerating the source

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
cdnutterandClaude Opus 5.5 committed 2026-10-20 09:18:42 -07:00
1 parent 3f7fd76762
commit d149af336a
2 files changed
+8 -2

No files matched your search

+7 -1
View File
@@ -19,7 +19,13 @@ def get(url):
yml = open(os.path.join(HERE, "..", "project.yml")).read() 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) m = re.search(r'MARKETING_VERSION: "(.*)"', yml), re.search(r'CURRENT_PROJECT_VERSION: "(.*)"', yml)
builds[m[0][1]] = m[1][1] builds[m[0][1]] = m[1][1]
+1 -1
View File
@@ -26,7 +26,7 @@
}, },
{ {
"version": "1.0.3", "version": "1.0.3",
"buildVersion": "1.0.3", "buildVersion": "4",
"date": "2026-10-20T09:08:18-07:00", "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-<version>.ipa. Adds an AltStore/SideStore/Feather source.", "localizedDescription": "Bundle ID is now org.cdnutter.stemify (delete the old app first; settings won't carry over). IPA is named stemify-<version>.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", "downloadURL": "https://git.iamchrisama.com/cdnutter/stemify/releases/download/ios-v1.0.3/stemify-1.0.3.ipa",