CheckPause v1.7.1 - Instant Update Checks
「检查更新」不再需要等待超时:此前两个 GitHub 镜像依次请求,其中一个在国内时常无法连接,每次检查都要耗尽它的超时时间。现在改为并发请求,并优先查询自建服务器,点击后基本可立即得到结果。
这是一次小更新:棋盘、引擎分析、存档、本地/云端模式全部照旧。
The "Check for updates" action no longer waits on a timeout. The previous code queried two GitHub mirrors in sequence, one of which is often unreachable from mainland China, so every check consumed that timeout before returning. Both are now queried concurrently, with the project's own server checked first, so the result appears almost immediately.
A small update otherwise: the board, engine analysis, saved games and both AI modes are unchanged.
🎯 What's Changed
⚡ 检查更新更快
- 两个 GitHub 镜像改为并发请求,等待时间由两者之和缩短为其中较慢的一个。
- 新增自建服务器作为首要来源(
http://43.108.99.244/version.json):国内访问速度快,且直接读取磁盘文件,不存在 CDN 缓存导致的版本滞后。 - 手动「检查更新」以主源为准,主源返回即显示结果;仅在主源不可达时回退到 GitHub 镜像。
- 开机后的后台检查仍会查询全部三个来源并取最高版本,用于发现主源文件过期的情况。
- The two GitHub mirrors are now queried concurrently, so the wait is that of the slowest one rather than their sum.
- A primary source on the project's own server is consulted first: fast to reach from China, and read directly from disk, so no CDN cache can hold a release back.
- A manual check trusts the primary source and shows its answer as soon as it arrives, falling back to the GitHub mirrors only when the server cannot be reached.
- The background check at launch still queries all three sources and keeps the highest version, which is how a stale primary manifest would be detected.
🖥 服务器
- nginx 新增
/version.json,由checkpause-version-refresh.timer每 2 分钟从仓库刷新(原子替换,失败保留旧文件)。 - nginx serves
/version.json, refreshed from the repository every 2 minutes bycheckpause-version-refresh.timer.
📜 Full Changelog
- fix(update): query every mirror at once instead of one after another
- feat(update): check our own server first so a manual check answers at once
- feat(server): mirror the version manifest from our own box
- chore(version): bump the app version to 1.7.1
⚠️ Breaking Changes
- 无破坏性变更。
- No breaking changes.
⚠️ 服务器需先重新部署(git pull+install.sh),主源才会生效;仍在使用 1.7.0 的用户需升级到本版本,才能获得即点即得的检查结果。⚠️ The server must be redeployed (git pull+install.sh) before the primary source exists, and users still on 1.7.0 need this release to get the instant result.
Full Changelog: v1.7.0...v1.7.1
SHA-256: D8A3BF0B864B1AC509F07B48B9A484EBCC97BBAD8726D92464C2CDA58EC84C19