版本管理,优化

This commit is contained in:
zhongluofeng
2026-08-11 17:19:36 +08:00
parent 2f20161010
commit 6c7897bf47
33 changed files with 1361 additions and 39 deletions
+8
View File
@@ -15,6 +15,7 @@ mod setup;
mod shortcut;
mod snap_fix;
mod tray_menu;
mod updater;
mod win32_util;
use download_engine::{
@@ -77,6 +78,7 @@ use quickpanel::{
quickpanel_unregister_shortcut,
};
use tray_menu::{tray_menu_action, tray_menu_hide, tray_menu_ready};
use updater::{app_version, update_check, update_install, update_thinghk};
#[tauri::command]
fn quit_app(app: tauri::AppHandle) {
@@ -101,6 +103,8 @@ fn export_bindings() {
// 生成命令失败时直接 throw,与原生 invoke 一致,前端无需解包 helper
.error_handling(ErrorHandlingMode::Throw)
.commands(collect_commands![
// 应用更新(4
app_version, update_check, update_install, update_thinghk,
// proxy20
proxy_activate_profile, proxy_check_kernel_update, proxy_clear_system_proxy,
proxy_close_connection, proxy_delete_profile, proxy_get_settings,
@@ -163,6 +167,10 @@ pub fn run() {
.manage(ProcessManager::new())
.invoke_handler(tauri::generate_handler![
quit_app,
app_version,
update_check,
update_install,
update_thinghk,
process_start,
process_stop,
process_status,