From ef2c6dfb1b1686fe8e4942a0f67003ed9dbf93b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=B4=E5=A4=A9?= Date: Sat, 28 Feb 2026 12:56:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=87=E6=8D=A2=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E6=BA=90=E5=90=8E=E8=87=AA=E5=8A=A8=E9=87=8D=E8=A3=85=20Gatewa?= =?UTF-8?q?y=20=E6=9C=8D=E5=8A=A1=E6=9B=B4=E6=96=B0=20plist=20=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-tauri/src/commands/config.rs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src-tauri/src/commands/config.rs b/src-tauri/src/commands/config.rs index cdfeee6..fb62e47 100644 --- a/src-tauri/src/commands/config.rs +++ b/src-tauri/src/commands/config.rs @@ -193,6 +193,28 @@ pub async fn upgrade_openclaw(app: tauri::AppHandle, source: String) -> Result { + let _ = app.emit("upgrade-log", "Gateway 服务已重装"); + } + _ => { + let _ = app.emit("upgrade-log", "⚠️ Gateway 重装失败,请手动执行 openclaw gateway install"); + } + } + } + let new_ver = get_local_version().unwrap_or_else(|| "未知".into()); let msg = format!("✅ 升级成功,当前版本: {new_ver}"); let _ = app.emit("upgrade-log", &msg);