- Cargo 依赖:tauri-plugin-updater、tauri-plugin-process - 插件注册:process 顶层 init,updater 于 setup 中注册 - 权限配置:capabilities 增加 updater:default、process:allow-restart - 配置:tauri.conf.json 启用 createUpdaterArtifacts 与 updater 占位(pubkey/endpoints)
15 lines
281 B
JSON
15 lines
281 B
JSON
{
|
|
"$schema": "../gen/schemas/desktop-schema.json",
|
|
"identifier": "default",
|
|
"description": "enables the default permissions",
|
|
"windows": [
|
|
"main"
|
|
],
|
|
"permissions": [
|
|
"core:default",
|
|
"opener:default",
|
|
"updater:default",
|
|
"process:allow-restart"
|
|
]
|
|
}
|