feat(webui): v0.7.3 — Kimi Code WebUI 应用内嵌窗口(单例/独立顶层窗口/服务器自动清理)+ 发布说明与网站同步
Release / Version consistency (push) Canceled after 0s
Release / Build (macos-latest) (push) Canceled after 0s
Release / Build (ubuntu-latest) (push) Canceled after 0s
Release / Build (windows-latest) (push) Canceled after 0s
Release / Attach macOS install script (push) Canceled after 0s
Release / Version consistency (push) Canceled after 0s
Release / Build (macos-latest) (push) Canceled after 0s
Release / Build (ubuntu-latest) (push) Canceled after 0s
Release / Build (windows-latest) (push) Canceled after 0s
Release / Attach macOS install script (push) Canceled after 0s
This commit is contained in:
1 parent
fc09a29b9f
commit
a0e36e928d
16 files changed
+145759
-143691
No files matched your search
+12
-2
@@ -110,6 +110,7 @@ pub fn run() {
|
||||
commands::open_installer,
|
||||
commands::open_external_url,
|
||||
commands::open_kimi_web,
|
||||
commands::open_kimi_web_embedded,
|
||||
commands::kimi_oauth_start,
|
||||
commands::kimi_oauth_poll,
|
||||
commands::get_experimental_env_status,
|
||||
@@ -123,6 +124,15 @@ pub fn run() {
|
||||
dashboard::delete_workspace,
|
||||
dashboard::get_session_preview,
|
||||
])
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
.manage(commands::KimiWebState::default())
|
||||
.build(tauri::generate_context!())
|
||||
.expect("error while running tauri application")
|
||||
.run(|app: &tauri::AppHandle, event| {
|
||||
// Ensure a `kimi web` server spawned for the embedded WebUI window
|
||||
// is stopped when the app exits (windows already destroyed first).
|
||||
if let tauri::RunEvent::Exit = event {
|
||||
let state = app.state::<commands::KimiWebState>();
|
||||
commands::kill_spawned_kimi_web(&state);
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user