Skip to content

baton v0.2.1

Choose a tag to compare

@github-actions github-actions released this 23 Nov 06:16
· 20 commits to main since this release
7e0274d

应用内更新更可靠了(#2)

  • 断点续传、自动重试:下载中断会自动接着下,共重试 5 次;45 秒收不到数据也会重试。仍然失败时,已下载的部分会保留,在「设置 → 更新」点「继续下载」从断点接着下,App 重启后也一样。
  • GitHub 接口不可用也能检查更新:接口被限流(匿名请求按出口 IP 每小时 60 次,共享代理出口很容易用光)或连不上时,改从最新 Release 的 SHA256SUMS.txt 得到版本号、下载地址和校验值,不占接口额度。
  • 使用系统代理:更新请求走 Chromium 网络栈,只开了系统代理(没开 TUN)也能连上 GitHub。
  • 看得懂的报错:例如「网络连接中断」「连接超时」「连接被拒绝(检查代理设置)」,并写明已重试几次、已下载多少;按失败的步骤给出「继续下载」或「重试」。

升级说明

  • 从 v0.2.0 升级时,执行升级的仍是 v0.2.0 里的旧更新器;网络不稳下载失败的话,请到下面手动下载这一版。之后的升级都会用上新的更新器。
  • 从 v0.1.0 升级需要手动下载。
  • 安装包未签名:macOS 首次打开请右键 → 打开;Windows 在 SmartScreen 里选「更多信息 → 仍要运行」。可以用 SHA256SUMS.txt 校验下载的文件。

English summary

  • In-app updates resume interrupted downloads and retry automatically (stalls included); a failed download keeps its partial file and 继续下载 continues it, even after a restart.
  • When the GitHub API is rate limited or unreachable, the check falls back to the latest release's SHA256SUMS.txt on github.com (version, download URL and hash in one request).
  • Update requests use the system proxy (Chromium network stack).
  • Errors are in plain words, with retries and progress.
  • Updating from v0.2.0 still runs v0.2.0's updater; download manually if it fails on a flaky network.

What's Changed

  • 应用内更新:断点续传、自动重试、API 不可用时的备用路径 by @DueGin in #2

Full Changelog: v0.2.0...v0.2.1