Skip to content

Commit

Permalink
fix(desktop): update ready window permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbreuninger committed Nov 25, 2024
1 parent 4ee5d86 commit 3a91b4b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions desktop/src-tauri/capabilities/updater.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
2 changes: 1 addition & 1 deletion desktop/src-tauri/gen/schemas/capabilities.json
Original file line number Diff line number Diff line change
@@ -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"]}}
{"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"]}}
4 changes: 2 additions & 2 deletions desktop/src-tauri/src/updates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl<'a> UpdateHelper<'a> {
pub async fn poll(&self) {
#[cfg(debug_assertions)] // disable during development
{
return
return;
}

loop {
Expand All @@ -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 {
Expand Down

0 comments on commit 3a91b4b

Please sign in to comment.