feat: 添加 Tauri 自动更新器插件支持 (updater plugin)
- 添加 tauri-plugin-updater / tauri-plugin-process Rust 依赖 - 注册 updater 和 process 插件到 Tauri 构建器 - 配置 tauri.conf.json 更新器端点与公钥占位 - 添加 @tauri-apps/plugin-updater / plugin-process npm 依赖 - 创建 useUpdater composable(静默检查、手动检查、下载进度、安装重启) - 在 AppLayout 标题栏集成更新交互 UI(下载按钮、进度条、安装状态) - 添加 .pnpm-store 到 .gitignore
This commit is contained in:
@@ -944,6 +944,8 @@ pub fn run() {
|
||||
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.plugin(tauri_plugin_process::init())
|
||||
.plugin(tauri_plugin_updater::Builder::new().build())
|
||||
.manage(AppState {
|
||||
clients: RwLock::new(HashMap::new()),
|
||||
log_writer,
|
||||
|
||||
Reference in New Issue
Block a user