You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ci(release): pin legacy update feeds to the 0.2.20 notice manifests
Every stable release re-downloaded latest.json and linux-binaries.json
from the v0.2.19 tag, which silently erased the 0.2.20 upgrade notice
after each new 1.x tag. Copy the pinned manifests from
scripts/fixtures/legacy-update-feeds/ instead and validate them inline
(desktop feed = 0.2.20 with non-empty notes, CLI feed = 0.2.19). The
publication step byte-compares the uploaded feeds against the fixtures
so a drifting fixture or stale upload fails the run.
The step no longer shells out to curl or jq, and the verify step is
unrolled per manifest so it runs on any bash environment without
relying on loop-variable expansion.
node -e 'const fs=require("node:fs");for(const f of ["release-upload-assets/latest.json","release-upload-assets/linux-binaries.json"]){const m=JSON.parse(fs.readFileSync(f,"utf8"));if(f.endsWith("latest.json")){if(m.version!=="0.2.20"||typeof m.notes!=="string"||m.notes.length===0)process.exit(1);}else if(m.version!=="0.2.19")process.exit(1);}'
787
787
788
788
- name: Upload to release
789
789
shell: bash
@@ -826,12 +826,14 @@ jobs:
826
826
shell: bash
827
827
run: |
828
828
set -euo pipefail
829
-
for manifest in latest.json linux-binaries.json; do
"notes": "全新版本上线!\nOpenBitFun 1.0.x 正式发布,欢迎升级!\n新版本无法从当前版本直接更新,手动下载地址:\n 官网 https://www.openbitfun.com/download\n GitHub https://github.com/GCWing/OpenBitFun/releases\n重要:两个版本数据相互独立,需使用官方数据迁移工具:\n https://github.com/GCWing/OpenBitFun/releases/tag/data-migrator-v0.1.1\n注意:\n1. 请勿点击下方「后台下载」按钮。\n2. 点击「跳过此版本」即可关闭本提示,不影响继续使用。\n3. 官网访问异常时,请在 VPN 工具中将 *.openbitfun.com 加入白名单。\n\nNew version available!\nOpenBitFun 1.0.x is now officially released — you are welcome to upgrade!\nThis new version cannot be updated directly from the current one. Download manually at:\n Official site: https://www.openbitfun.com/download\n GitHub: https://github.com/GCWing/OpenBitFun/releases\nImportant: the two versions keep their data completely separate. Use the official\nData Migrator to carry your data over:\n https://github.com/GCWing/OpenBitFun/releases/tag/data-migrator-v0.1.1\nNotes:\n1. Do NOT click the \"Download in background\" button below.\n2. Click \"Skip this version\" to dismiss this notice — it does not affect your\n continued use of the app.\n3. If the official site is unreachable, whitelist *.openbitfun.com in your VPN tool."
0 commit comments