Skip to content

Commit 0bec993

Browse files
Caldisclaude
andcommitted
chore: release 4.0.1 — bump version, update appcast, fix release scripts
- Bump version to 4.0.1 (build 20260308.1) - Update appcast with signed 4.0.1 entry - Fix update_appcast.sh: prefer root app Info.plist over nested framework plists - Fix update_appcast.sh: remove extra closing paren - Fix create_gh_draft.sh: handle empty PRERELEASE array with set -u Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 703fad6 commit 0bec993

File tree

5 files changed

+58
-9
lines changed

5 files changed

+58
-9
lines changed

.skills/release-preparation/scripts/create_gh_draft.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if gh release view "$TAG" --repo "$GITHUB_REPO" >/dev/null 2>&1; then
3333
--draft \
3434
--title "$TAG" \
3535
--notes-file "$NOTES_FILE" \
36-
"${PRERELEASE[@]}"
36+
${PRERELEASE[@]+"${PRERELEASE[@]}"}
3737
# Upload/replace asset
3838
gh release upload "$TAG" "$ZIP_PATH" --repo "$GITHUB_REPO" --clobber
3939
else
@@ -42,7 +42,7 @@ else
4242
--draft \
4343
--notes-file "$NOTES_FILE" \
4444
--title "$TAG" \
45-
"${PRERELEASE[@]}"
45+
${PRERELEASE[@]+"${PRERELEASE[@]}"}
4646
fi
4747

4848
echo "[release] Draft created: https://github.com/${GITHUB_REPO}/releases/tag/${TAG}"

.skills/release-preparation/scripts/update_appcast.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ import json, plistlib, sys, zipfile
4747
with zipfile.ZipFile(sys.argv[1]) as z:
4848
candidates = [n for n in z.namelist() if n.endswith(".app/Contents/Info.plist")]
4949
if not candidates: raise SystemExit("No Info.plist in zip")
50+
# Prefer shortest path (root app plist, not nested framework plists)
51+
candidates.sort(key=len)
5052
plist = plistlib.loads(z.read(candidates[0]))
5153
print(json.dumps({
5254
"short": plist.get("CFBundleShortVersionString", ""),
@@ -93,7 +95,6 @@ ${CHANNEL_ELEMENT}
9395
</item>
9496
EOF
9597
)
96-
)
9798

9899
# Merge into existing appcast (prepend new item, dedup by version)
99100
APPCAST_BUILD="$BUILD_DIR/appcast.xml"

Mos.xcodeproj/project.pbxproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@
311311
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
312312
CODE_SIGN_STYLE = Automatic;
313313
COMBINE_HIDPI_IMAGES = YES;
314-
CURRENT_PROJECT_VERSION = 20260220.1;
314+
CURRENT_PROJECT_VERSION = 20260308.1;
315315
DEAD_CODE_STRIPPING = YES;
316316
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
317317
DEVELOPMENT_ASSET_PATHS = "";
@@ -325,7 +325,7 @@
325325
"@executable_path/../Frameworks",
326326
);
327327
MACOSX_DEPLOYMENT_TARGET = 10.13;
328-
MARKETING_VERSION = 4.0.0;
328+
MARKETING_VERSION = 4.0.1;
329329
MTL_ENABLE_DEBUG_INFO = NO;
330330
"OTHER_SWIFT_FLAGS[arch=*]" = "-DDEBUG";
331331
PRODUCT_BUNDLE_IDENTIFIER = com.caldis.Mos;
@@ -357,7 +357,7 @@
357357
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
358358
CODE_SIGN_STYLE = Automatic;
359359
COMBINE_HIDPI_IMAGES = YES;
360-
CURRENT_PROJECT_VERSION = 20260220.1;
360+
CURRENT_PROJECT_VERSION = 20260308.1;
361361
DEAD_CODE_STRIPPING = YES;
362362
DEVELOPMENT_ASSET_PATHS = "";
363363
DEVELOPMENT_TEAM = N7Z52F27XK;
@@ -371,7 +371,7 @@
371371
"@executable_path/../Frameworks",
372372
);
373373
MACOSX_DEPLOYMENT_TARGET = 10.13;
374-
MARKETING_VERSION = 4.0.0;
374+
MARKETING_VERSION = 4.0.1;
375375
MTL_ENABLE_DEBUG_INFO = NO;
376376
PRODUCT_BUNDLE_IDENTIFIER = com.caldis.Mos;
377377
PRODUCT_NAME = "$(TARGET_NAME)";

build/appcast.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@
88
<description>Mos Updates</description>
99
<language>en</language>
1010

11+
<item>
12+
<title>Mos 4.0.1</title>
13+
14+
<description><![CDATA[<h2>新功能</h2>
15+
<ul>
16+
<li>添加 UU 远程桌面(UU远程桌面)支持,防止主机与客户端同时安装 Mos 时出现双重平滑问题,感谢 @jijiamoer (#879)</li>
17+
</ul>
18+
<h2>修复</h2>
19+
<ul>
20+
<li>修复滚动事件派发问题,引入 ScrollDispatchContext 重构 ScrollPoster,解决部分场景下滚动异常 (#868, #826)</li>
21+
<li>修复 macOS 26+ 上 LaunchPad 检测逻辑,避免影响 Dock 文件夹弹出视图,感谢 @Lezheng2333 反馈 (#878)</li>
22+
</ul>]]></description>
23+
<pubDate>Sat, 07 Mar 2026 17:22:44 +0000</pubDate>
24+
25+
<enclosure
26+
url="https://github.com/Caldis/Mos/releases/download/4.0.1/Mos.Versions.4.0.1-20260308.1.zip"
27+
length="11429683"
28+
type="application/octet-stream"
29+
sparkle:shortVersionString="4.0.1"
30+
sparkle:version="20260308.1"
31+
sparkle:edSignature="XKVIyw8EvJtGtcoiVIvGF7uyTBfx3ptAGRt2KLdlHZPHYhtqFbyC3rfzCEvOEc5PVIlPCos12Ci5hNcF1M5iDQ=="
32+
/>
33+
</item>
34+
1135
<item>
1236
<title>Mos 4.0.0</title>
1337

@@ -92,4 +116,4 @@
92116
/>
93117
</item>
94118
</channel>
95-
</rss>
119+
</rss>

docs/appcast.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,30 @@
88
<description>Mos Updates</description>
99
<language>en</language>
1010

11+
<item>
12+
<title>Mos 4.0.1</title>
13+
14+
<description><![CDATA[<h2>新功能</h2>
15+
<ul>
16+
<li>添加 UU 远程桌面(UU远程桌面)支持,防止主机与客户端同时安装 Mos 时出现双重平滑问题,感谢 @jijiamoer (#879)</li>
17+
</ul>
18+
<h2>修复</h2>
19+
<ul>
20+
<li>修复滚动事件派发问题,引入 ScrollDispatchContext 重构 ScrollPoster,解决部分场景下滚动异常 (#868, #826)</li>
21+
<li>修复 macOS 26+ 上 LaunchPad 检测逻辑,避免影响 Dock 文件夹弹出视图,感谢 @Lezheng2333 反馈 (#878)</li>
22+
</ul>]]></description>
23+
<pubDate>Sat, 07 Mar 2026 17:22:44 +0000</pubDate>
24+
25+
<enclosure
26+
url="https://github.com/Caldis/Mos/releases/download/4.0.1/Mos.Versions.4.0.1-20260308.1.zip"
27+
length="11429683"
28+
type="application/octet-stream"
29+
sparkle:shortVersionString="4.0.1"
30+
sparkle:version="20260308.1"
31+
sparkle:edSignature="XKVIyw8EvJtGtcoiVIvGF7uyTBfx3ptAGRt2KLdlHZPHYhtqFbyC3rfzCEvOEc5PVIlPCos12Ci5hNcF1M5iDQ=="
32+
/>
33+
</item>
34+
1135
<item>
1236
<title>Mos 4.0.0</title>
1337

@@ -92,4 +116,4 @@
92116
/>
93117
</item>
94118
</channel>
95-
</rss>
119+
</rss>

0 commit comments

Comments
 (0)