fix(app): resumable, cancellable update download; portable copies get the portable zip

- UpdateFlow owns the update notice (check, download, cancel) as a plain class;
  AboutViewModel only maps it to text and commands.
- A portable copy downloads and verifies Titano-win-x64-portable-<v>.zip instead
  of the setup; a release without the package or SHA256SUMS opens its page.
- The download fails after 60 s without data instead of after 30 minutes,
  keeps its .part file and resumes it with a range request; Cancel stops it.
- Older release folders under %TEMP%\Titano\updates are removed after a
  verified download; an unexpected exception never leaves "Downloading".
- Tooltips show the package size; stale machine translations of the three
  rewritten tooltips are removed so they fall back to English.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-03 10:00:54 +00:00
1 parent aac2539276
commit ffa05d9f69
36 files changed
+828 -298

No files matched your search

-3
View File
@@ -5,8 +5,6 @@
<resheader name="reader"><value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<resheader name="writer"><value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value></resheader>
<data name="Tooltips.About.Check" xml:space="preserve"><value>向公开发布页面查询是否有新版本 · 需要几秒钟</value></data>
<data name="Tooltips.About.Diagnostics" xml:space="preserve"><value>将日志和环境报告打包为 ZIP,保存到你选择的文件夹;不包含设置和密码</value></data>
<data name="Tooltips.About.Download" xml:space="preserve"><value>在浏览器中打开发布页面</value></data>
<data name="Tooltips.About.Licence" xml:space="preserve"><value>在浏览器中打开许可证</value></data>
<data name="Tooltips.About.OpenData" xml:space="preserve"><value>打开包含数据库、设置和日志的文件夹</value></data>
<data name="Tooltips.About.Releases" xml:space="preserve"><value>在浏览器中打开公开发布页面</value></data>
@@ -135,7 +133,6 @@
<data name="Tooltips.Settings.ClearCacheAsk" xml:space="preserve"><value>删除溢出的帧和缓存的缩略图;会先询问</value></data>
<data name="Tooltips.Settings.DataFolder" xml:space="preserve"><value>此电脑的数据库、设置、日志和缓存</value></data>
<data name="Tooltips.Settings.DefaultServer" xml:space="preserve"><value>Titano 启动时连接的服务器;更改后将退出登录 · Enter 应用,Esc 还原</value></data>
<data name="Tooltips.Settings.Diagnostics" xml:space="preserve"><value>将日志和环境报告打包为 ZIP,保存到你选择的文件夹</value></data>
<data name="Tooltips.Settings.Export" xml:space="preserve"><value>将所有设置保存为 JSON,不含会话令牌</value></data>
<data name="Tooltips.Settings.FileTemplate" xml:space="preserve"><value>每一帧的文件名,例如 {date}_{time}_{n:0000};扩展名会自动添加 · Enter 应用,Esc 还原</value></data>
<data name="Tooltips.Settings.FolderTemplate" xml:space="preserve"><value>档案库文件夹,例如 {year}/{date} {camera};斜杠表示开始一个子文件夹 · Enter 应用,Esc 还原</value></data>