iOS 1.0 RC 1: battery and heat work, version label, web player redraw tweaks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0fc35b13e8
commit
c0e33b5e3e
18 files changed
+143
-36
No files matched your search
@@ -9,7 +9,8 @@ cd "$(dirname "$0")/.."
|
||||
export PATH=/opt/homebrew/bin:$PATH
|
||||
B=build; OUT=$B/work; APP=$OUT/Payload/Stemify.app; EXT=$APP/PlugIns/StemifyWidgets.appex
|
||||
rm -rf $OUT && mkdir -p $OUT/Payload $B/public $B/prov
|
||||
VERSION=$(sed -nE 's/^ *MARKETING_VERSION: "(.*)"/\1/p' project.yml)
|
||||
# "1.0 RC 1" -> 1.0-rc1, used in file names and release tags.
|
||||
VERSION=$(sed -nE 's/^ *VERSION_LABEL: "(.*)"/\1/p' project.yml | tr 'A-Z' 'a-z' | sed -E 's/ rc /-rc/; s/ /-/g')
|
||||
|
||||
# xcodebuild compiles the app, the widget extension, the asset catalog and the App Intents metadata.
|
||||
xcodegen generate -q
|
||||
|
||||
@@ -23,11 +23,14 @@ yml = open(os.path.join(HERE, "..", "project.yml")).read()
|
||||
builds = {}
|
||||
try:
|
||||
for v in json.load(open(os.path.join(HERE, "..", "source.json")))["apps"][0]["versions"]:
|
||||
builds[v["version"]] = v["buildVersion"]
|
||||
builds[v["downloadURL"].rsplit("/stemify-", 1)[-1].removesuffix(".ipa")] = 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]
|
||||
# Tags and IPAs use the label as a slug ("1.0 RC 1" -> 1.0-rc1); AltStore gets the plain bundle
|
||||
# version, so it matches what's installed, and the label to show.
|
||||
label = re.search(r'VERSION_LABEL: "(.*)"', yml)[1]
|
||||
slug = label.lower().replace(" rc ", "-rc").replace(" ", "-")
|
||||
builds[slug] = re.search(r'CURRENT_PROJECT_VERSION: "(.*)"', yml)[1]
|
||||
|
||||
versions = []
|
||||
for rel in get(API + "/releases?limit=50"):
|
||||
@@ -36,7 +39,8 @@ for rel in get(API + "/releases?limit=50"):
|
||||
if not rel["tag_name"].startswith("ios-v") or not ipa:
|
||||
continue
|
||||
versions.append({
|
||||
"version": v,
|
||||
"version": v.split("-")[0],
|
||||
"marketingVersion": v.replace("-rc", " RC ").replace("-", " ") if "-" in v else v,
|
||||
"buildVersion": builds.get(v, v),
|
||||
"date": rel["published_at"],
|
||||
"localizedDescription": rel["body"].strip() or f"Stemify {v}",
|
||||
|
||||
Reference in new issue
Block a user