feat: 升级进度弹窗 + 安装源自动检测与切换

- 升级过程改为流式日志推送(Tauri Event),前端展示进度条和实时日志
- 后端自动检测当前安装的是官方版(openclaw)还是汉化版(openclaw-zh)
- 服务管理页支持一键切换安装源,切换时先卸载旧包避免 bin 冲突
- 版本号比较改为逐段数值比较,支持 -zh.X 后缀的小版本检测
- 仪表盘、关于页同步显示当前安装源标识
This commit is contained in:
晴天
2026-02-28 12:43:19 +08:00
parent 84a6ab4d45
commit 3fd98623c0
8 changed files with 259 additions and 37 deletions

View File

@@ -13,4 +13,5 @@ pub struct VersionInfo {
pub current: Option<String>,
pub latest: Option<String>,
pub update_available: bool,
pub source: String,
}