From b7b8b2bea240a33cd3d35620b5a4d0cdf806e8a7 Mon Sep 17 00:00:00 2001 From: baiqing Date: Mon, 27 Apr 2026 19:03:14 +0800 Subject: [PATCH] fix(release): force C locale for RFC 822 pubDate; clean up appcast layout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first release.sh run wrote a Chinese-locale pubDate ("一, 27 4月 2026 …") into appcast.xml, which Sparkle's RFC 822 date parser rejects. Force LC_ALL=C around the date call so future releases produce the standard "Mon, 27 Apr 2026 11:02:01 +0000" format. Manually fix the v1.0.02 entry's pubDate and move back above for a tidy feed. --- appcast.xml | 4 ++-- scripts/release.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/appcast.xml b/appcast.xml index 214e0aeb..8dea50ba 100644 --- a/appcast.xml +++ b/appcast.xml @@ -4,10 +4,11 @@ OpenLess https://raw.githubusercontent.com/appergb/openless/main/appcast.xml OpenLess update feed + zh-CN OpenLess 1.0.02 - 一, 27 4月 2026 11:02:01 +0000 + Mon, 27 Apr 2026 11:02:01 +0000 A1004 1.0.02 15.0 @@ -47,6 +48,5 @@ xattr -dr com.apple.quarantine /Applications/OpenLess.app type="application/octet-stream" sparkle:edSignature="PVtUgUO28Re0Q80VbF3r6NCamZMgW+X7DANqwOD97yiT2rly9J2MmPt0xnaRj6fWieKsgHUZZ94C8RalkwVQAA==" /> - zh-CN diff --git a/scripts/release.sh b/scripts/release.sh index da5c68c7..2fd1fd26 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -83,7 +83,7 @@ else NOTES_HTML="OpenLess ${VERSION}

]]>" fi -PUB_DATE=$(/bin/date -u +"%a, %d %b %Y %H:%M:%S +0000") +PUB_DATE=$(LC_ALL=C /bin/date -u +"%a, %d %b %Y %H:%M:%S +0000") DOWNLOAD_URL="https://github.com/appergb/openless/releases/download/v${VERSION}/${ZIP_NAME}" # 7. 在 appcast.xml 的标记行后插入新