diff --git a/desktop/src-tauri/capabilities/updater.json b/desktop/src-tauri/capabilities/updater.json new file mode 100644 index 000000000..d2fa93de8 --- /dev/null +++ b/desktop/src-tauri/capabilities/updater.json @@ -0,0 +1,14 @@ +{ + "identifier": "updater", + "description": "Updater Capabilities", + "local": true, + "windows": [ + "update_ready" + ], + "permissions": [ + "core:default", + "process:allow-exit", + "process:allow-restart", + "os:default" + ] +} diff --git a/desktop/src-tauri/gen/schemas/capabilities.json b/desktop/src-tauri/gen/schemas/capabilities.json index 6780400a5..94f1cb044 100644 --- a/desktop/src-tauri/gen/schemas/capabilities.json +++ b/desktop/src-tauri/gen/schemas/capabilities.json @@ -1 +1 @@ -{"main":{"identifier":"main","description":"Main capabilities","local":true,"windows":["main"],"permissions":["core:default","process:allow-exit","process:allow-restart","os:default","shell:allow-open","shell:allow-kill","shell:allow-spawn",{"identifier":"shell:allow-execute","allow":[{"args":true,"name":"bin/devpod-cli","sidecar":true},{"args":true,"cmd":"/app/bin/devpod-cli","name":"bin/devpod-cli"},{"args":["version"],"cmd":"devpod","name":"run-path-devpod-cli"}]},{"identifier":"shell:allow-spawn","allow":[{"args":true,"name":"bin/devpod-cli","sidecar":true}]},{"identifier":"shell:allow-kill","allow":[{"args":true,"name":"bin/devpod-cli","sidecar":true}]},"fs:default","fs:allow-app-read-recursive","fs:allow-app-write-recursive","fs:allow-app-meta-recursive","fs:allow-appdata-write-recursive","fs:allow-appdata-read-recursive","fs:allow-home-read-recursive","fs:allow-home-write-recursive","fs:allow-home-meta-recursive","clipboard-manager:allow-write-text","updater:default","core:window:default","core:window:allow-start-dragging","core:window:allow-close","core:window:allow-set-focus","notification:default","store:allow-load","store:default","dialog:allow-save","dialog:default","log:default","log:allow-log"]}} \ No newline at end of file +{"main":{"identifier":"main","description":"Main capabilities","local":true,"windows":["main"],"permissions":["core:default","process:allow-exit","process:allow-restart","os:default","shell:allow-open","shell:allow-kill","shell:allow-spawn",{"identifier":"shell:allow-execute","allow":[{"args":true,"name":"bin/devpod-cli","sidecar":true},{"args":true,"cmd":"/app/bin/devpod-cli","name":"bin/devpod-cli"},{"args":["version"],"cmd":"devpod","name":"run-path-devpod-cli"}]},{"identifier":"shell:allow-spawn","allow":[{"args":true,"name":"bin/devpod-cli","sidecar":true}]},{"identifier":"shell:allow-kill","allow":[{"args":true,"name":"bin/devpod-cli","sidecar":true}]},"fs:default","fs:allow-app-read-recursive","fs:allow-app-write-recursive","fs:allow-app-meta-recursive","fs:allow-appdata-write-recursive","fs:allow-appdata-read-recursive","fs:allow-home-read-recursive","fs:allow-home-write-recursive","fs:allow-home-meta-recursive","clipboard-manager:allow-write-text","updater:default","core:window:default","core:window:allow-start-dragging","core:window:allow-close","core:window:allow-set-focus","notification:default","store:allow-load","store:default","dialog:allow-save","dialog:default","log:default","log:allow-log"]},"updater":{"identifier":"updater","description":"Updater Capabilities","local":true,"windows":["update_ready"],"permissions":["core:default","process:allow-exit","process:allow-restart","os:default"]}} \ No newline at end of file diff --git a/desktop/src-tauri/src/updates.rs b/desktop/src-tauri/src/updates.rs index 78a889f71..e43441792 100644 --- a/desktop/src-tauri/src/updates.rs +++ b/desktop/src-tauri/src/updates.rs @@ -163,7 +163,7 @@ impl<'a> UpdateHelper<'a> { pub async fn poll(&self) { #[cfg(debug_assertions)] // disable during development { - return + return; } loop { @@ -181,7 +181,7 @@ impl<'a> UpdateHelper<'a> { if let Ok(update) = updater.unwrap().check().await { match update { Some(..) => info!("update available"), - None => info!("no update available") + None => info!("no update available"), }; if let Some(update) = update {