Grant updater:default capability so OTA install works
The updater check runs Rust-side (check_for_updates via UpdaterExt), so update
notifications worked, but "Install & Restart" calls the JS plugin command
plugin:updater|download_and_install — which no capability granted, producing a
"command plugin:update… not allowed" error toast. Add updater:default (check +
download + install) to the desktop capability.
Note: pre-existing builds (incl. installed 0.4.0 and the published 0.4.1) have
the broken capability baked in and cannot self-update; a fixed build must be
installed manually before OTA install works going forward.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 file changed,
+3 insertions,
-2 deletions
| 1 |
1 |
|
{
|
| 2 |
2 |
|
"$schema": "https://schemas.tauri.app/capabilities/2",
|
| 3 |
3 |
|
"identifier": "desktop",
|
| 4 |
|
- |
"description": "Desktop-only capabilities (shell, notifications)",
|
|
4 |
+ |
"description": "Desktop-only capabilities (shell, notifications, OTA updater)",
|
| 5 |
5 |
|
"platforms": ["linux", "macOS", "windows"],
|
| 6 |
6 |
|
"windows": ["main", "compose-*"],
|
| 7 |
7 |
|
"permissions": [
|
| 8 |
8 |
|
"shell:allow-open",
|
| 9 |
|
- |
"notification:default"
|
|
9 |
+ |
"notification:default",
|
|
10 |
+ |
"updater:default"
|
| 10 |
11 |
|
]
|
| 11 |
12 |
|
}
|