feat(updater): 集成 Rust 侧 Updater/Process 插件与权限配置

- Cargo 依赖:tauri-plugin-updater、tauri-plugin-process
- 插件注册:process 顶层 init,updater 于 setup 中注册
- 权限配置:capabilities 增加 updater:default、process:allow-restart
- 配置:tauri.conf.json 启用 createUpdaterArtifacts 与 updater 占位(pubkey/endpoints)
This commit is contained in:
Jason
2025-09-08 16:58:41 +08:00
parent a1a16be2aa
commit 9ff7516c51
5 changed files with 381 additions and 1 deletions

View File

@@ -30,6 +30,7 @@
"bundle": {
"active": true,
"targets": "all",
"createUpdaterArtifacts": true,
"icon": [
"icons/32x32.png",
"icons/128x128.png",
@@ -38,4 +39,13 @@
"icons/icon.ico"
]
}
,
"plugins": {
"updater": {
"pubkey": "",
"endpoints": [
"https://example.com/releases/latest.json"
]
}
}
}