Skip to content

Commit 559e727

Browse files
committed
Remove beta warning blockquotes from release notes
Eliminated the automatic insertion of beta warning blockquotes and their associated styles from both English and Chinese release notes. Updated the appcast publication date to reflect these changes. The script for generating release notes was simplified to no longer add these warnings.
1 parent 8804206 commit 559e727

File tree

7 files changed

+9
-50
lines changed

7 files changed

+9
-50
lines changed

.codex/skills/generate-sparkle-appcast/scripts/generate_appcast.sh

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -339,42 +339,18 @@ NOTES_EN_BUILD="${RELEASE_NOTES_EN_FILE:-$NOTES_EN_BUILD_DEFAULT}"
339339

340340
if [[ ! -s "$NOTES_ZH_BUILD" || ! -s "$NOTES_EN_BUILD" ]]; then
341341
# Split bilingual HTML into two pages following the same structure, but language-specific.
342-
printf '%s' "$RELEASE_NOTES_HTML" | python3 -c '
342+
NOTES_HTML="$RELEASE_NOTES_HTML" python3 -c '
343+
import os
343344
import sys
344345

345-
is_beta = sys.argv[1].lower() == "true"
346-
zh_out = sys.argv[2]
347-
en_out = sys.argv[3]
348-
349-
ZH_WARNING = (
350-
"<blockquote>这是测试版本,一些功能或内容可能会在正式版本中变更。</blockquote>\n"
351-
"<blockquote>如果应用无法启动或遇到权限问题,请参考 "
352-
"<a href=\"https://github.com/Caldis/Mos/wiki/%E5%A6%82%E6%9E%9C%E5%BA%94%E7%94%A8%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E8%BF%90%E8%A1%8C\">"
353-
"Wiki: 如果应用无法正常运行</a></blockquote>\n\n"
354-
)
355-
356-
EN_WARNING = (
357-
"<blockquote>This is a beta version; some features or content may change in the official release.</blockquote>\n"
358-
"<blockquote>If the application fails to start or encounters permission issues, please refer to "
359-
"<a href=\"https://github.com/Caldis/Mos/wiki/If-the-App-not-work-properly\">"
360-
"Wiki: If the App not work properly</a></blockquote>\n\n"
361-
)
362-
363-
content = sys.stdin.read()
346+
zh_out = sys.argv[1]
347+
en_out = sys.argv[2]
348+
349+
content = os.environ.get("NOTES_HTML", "")
364350
parts = content.split("<hr/>")
365351
zh_body = parts[0].strip()
366352
en_body = parts[1].strip() if len(parts) > 1 else ""
367353

368-
if is_beta:
369-
if zh_body and not zh_body.startswith("<blockquote>"):
370-
zh_body = ZH_WARNING + zh_body
371-
elif not zh_body:
372-
zh_body = ZH_WARNING
373-
if en_body and not en_body.startswith("<blockquote>"):
374-
en_body = EN_WARNING + en_body
375-
elif not en_body:
376-
en_body = EN_WARNING
377-
378354
def wrap_page(body: str, lang: str) -> str:
379355
return (
380356
"<!doctype html>\n"
@@ -385,7 +361,6 @@ def wrap_page(body: str, lang: str) -> str:
385361
" <title>Mos Release Notes</title>\n"
386362
" <style>\n"
387363
" body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;line-height:1.5;padding:20px;max-width:900px;margin:0 auto;}\n"
388-
" blockquote{margin:0 0 12px 0;padding:10px 12px;border-left:4px solid #6b7280;background:#f3f4f6;border-radius:6px;}\n"
389364
" h2{margin:18px 0 8px 0;}\n"
390365
" ul{margin:6px 0 14px 18px;}\n"
391366
" code{background:#f3f4f6;padding:0 4px;border-radius:4px;}\n"
@@ -403,7 +378,7 @@ with open(zh_out, "w", encoding="utf-8") as f:
403378
f.write(wrap_page(zh_body, "zh"))
404379
with open(en_out, "w", encoding="utf-8") as f:
405380
f.write(wrap_page(en_body, "en"))
406-
' "$BETA_FLAG" "$NOTES_ZH_BUILD" "$NOTES_EN_BUILD"
381+
' "$NOTES_ZH_BUILD" "$NOTES_EN_BUILD"
407382
fi
408383

409384
# Copy release notes into docs for publishing

build/appcast.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<h2>Fixes</h2>
3535
<ul><li>Allowed binding the middle mouse button without modifier keys.</li><li>Fixed some shortcut issues on non‑US keyboard layouts.</li></ul>]]></description>
36-
<pubDate>Fri, 09 Jan 2026 16:12:17 +0000</pubDate>
36+
<pubDate>Fri, 09 Jan 2026 17:10:52 +0000</pubDate>
3737

3838
<sparkle:releaseNotesLink xml:lang="zh">https://mos.caldis.me/release-notes/4.0.0-beta-20260108.1.zh.html</sparkle:releaseNotesLink>
3939
<sparkle:releaseNotesLink>https://mos.caldis.me/release-notes/4.0.0-beta-20260108.1.en.html</sparkle:releaseNotesLink>

build/release-notes/4.0.0-beta-20260108.1.en.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<title>Mos Release Notes</title>
77
<style>
88
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;line-height:1.5;padding:20px;max-width:900px;margin:0 auto;}
9-
blockquote{margin:0 0 12px 0;padding:10px 12px;border-left:4px solid #6b7280;background:#f3f4f6;border-radius:6px;}
109
h2{margin:18px 0 8px 0;}
1110
ul{margin:6px 0 14px 18px;}
1211
code{background:#f3f4f6;padding:0 4px;border-radius:4px;}
@@ -15,9 +14,6 @@
1514
</style>
1615
</head>
1716
<body>
18-
<blockquote>This is a beta version; some features or content may change in the official release.</blockquote>
19-
<blockquote>If the application fails to start or encounters permission issues, please refer to <a href="https://github.com/Caldis/Mos/wiki/If-the-App-not-work-properly">Wiki: If the App not work properly</a></blockquote>
20-
2117
<h2>New Feature</h2>
2218
<ul><li>Added in-app update checking via Sparkle, with an optional beta channel toggle.</li></ul>
2319

build/release-notes/4.0.0-beta-20260108.1.zh.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<title>Mos Release Notes</title>
77
<style>
88
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;line-height:1.5;padding:20px;max-width:900px;margin:0 auto;}
9-
blockquote{margin:0 0 12px 0;padding:10px 12px;border-left:4px solid #6b7280;background:#f3f4f6;border-radius:6px;}
109
h2{margin:18px 0 8px 0;}
1110
ul{margin:6px 0 14px 18px;}
1211
code{background:#f3f4f6;padding:0 4px;border-radius:4px;}
@@ -15,9 +14,6 @@
1514
</style>
1615
</head>
1716
<body>
18-
<blockquote>这是测试版本,一些功能或内容可能会在正式版本中变更。</blockquote>
19-
<blockquote>如果应用无法启动或遇到权限问题,请参考 <a href="https://github.com/Caldis/Mos/wiki/%E5%A6%82%E6%9E%9C%E5%BA%94%E7%94%A8%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E8%BF%90%E8%A1%8C">Wiki: 如果应用无法正常运行</a></blockquote>
20-
2117
<h2>新功能</h2>
2218
<ul><li>新增应用内更新检查(Sparkle),并支持 Beta 渠道开关。</li></ul>
2319

docs/appcast.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
<h2>Fixes</h2>
3535
<ul><li>Allowed binding the middle mouse button without modifier keys.</li><li>Fixed some shortcut issues on non‑US keyboard layouts.</li></ul>]]></description>
36-
<pubDate>Fri, 09 Jan 2026 16:12:17 +0000</pubDate>
36+
<pubDate>Fri, 09 Jan 2026 17:10:52 +0000</pubDate>
3737

3838
<sparkle:releaseNotesLink xml:lang="zh">https://mos.caldis.me/release-notes/4.0.0-beta-20260108.1.zh.html</sparkle:releaseNotesLink>
3939
<sparkle:releaseNotesLink>https://mos.caldis.me/release-notes/4.0.0-beta-20260108.1.en.html</sparkle:releaseNotesLink>

docs/release-notes/4.0.0-beta-20260108.1.en.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<title>Mos Release Notes</title>
77
<style>
88
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;line-height:1.5;padding:20px;max-width:900px;margin:0 auto;}
9-
blockquote{margin:0 0 12px 0;padding:10px 12px;border-left:4px solid #6b7280;background:#f3f4f6;border-radius:6px;}
109
h2{margin:18px 0 8px 0;}
1110
ul{margin:6px 0 14px 18px;}
1211
code{background:#f3f4f6;padding:0 4px;border-radius:4px;}
@@ -15,9 +14,6 @@
1514
</style>
1615
</head>
1716
<body>
18-
<blockquote>This is a beta version; some features or content may change in the official release.</blockquote>
19-
<blockquote>If the application fails to start or encounters permission issues, please refer to <a href="https://github.com/Caldis/Mos/wiki/If-the-App-not-work-properly">Wiki: If the App not work properly</a></blockquote>
20-
2117
<h2>New Feature</h2>
2218
<ul><li>Added in-app update checking via Sparkle, with an optional beta channel toggle.</li></ul>
2319

docs/release-notes/4.0.0-beta-20260108.1.zh.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<title>Mos Release Notes</title>
77
<style>
88
body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;line-height:1.5;padding:20px;max-width:900px;margin:0 auto;}
9-
blockquote{margin:0 0 12px 0;padding:10px 12px;border-left:4px solid #6b7280;background:#f3f4f6;border-radius:6px;}
109
h2{margin:18px 0 8px 0;}
1110
ul{margin:6px 0 14px 18px;}
1211
code{background:#f3f4f6;padding:0 4px;border-radius:4px;}
@@ -15,9 +14,6 @@
1514
</style>
1615
</head>
1716
<body>
18-
<blockquote>这是测试版本,一些功能或内容可能会在正式版本中变更。</blockquote>
19-
<blockquote>如果应用无法启动或遇到权限问题,请参考 <a href="https://github.com/Caldis/Mos/wiki/%E5%A6%82%E6%9E%9C%E5%BA%94%E7%94%A8%E6%97%A0%E6%B3%95%E6%AD%A3%E5%B8%B8%E8%BF%90%E8%A1%8C">Wiki: 如果应用无法正常运行</a></blockquote>
20-
2117
<h2>新功能</h2>
2218
<ul><li>新增应用内更新检查(Sparkle),并支持 Beta 渠道开关。</li></ul>
2319

0 commit comments

Comments
 (0)