diff --git a/apps/desktop/package.json b/apps/desktop/package.json index 162fb196..75535bcd 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,7 +1,7 @@ { "name": "desktop", "private": true, - "version": "0.1.7", + "version": "0.1.8", "scripts": { "dev": "tauri dev", "build": "tsc && next build", diff --git a/apps/desktop/src-tauri/src/main.rs b/apps/desktop/src-tauri/src/main.rs index 22c2afb7..cd455978 100644 --- a/apps/desktop/src-tauri/src/main.rs +++ b/apps/desktop/src-tauri/src/main.rs @@ -126,6 +126,7 @@ fn main() { .expect("failed to reset microphone permissions"); } + #[tauri::command] fn reset_camera_permissions() { #[cfg(target_os = "macos")] std::process::Command::new("tccutil") @@ -199,7 +200,9 @@ fn main() { open_mic_preferences, open_camera_preferences, has_screen_capture_access, - reset_screen_permissions + reset_screen_permissions, + reset_microphone_permissions, + reset_camera_permissions, ]) .plugin(tauri_plugin_context_menu::init()) .run(tauri::generate_context!()) diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json index fea2b2d3..ccf9d002 100644 --- a/apps/desktop/src-tauri/tauri.conf.json +++ b/apps/desktop/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "Cap", - "version": "0.1.7" + "version": "0.1.8" }, "tauri": { "allowlist": { diff --git a/apps/desktop/src/app/page.tsx b/apps/desktop/src/app/page.tsx index 75af009a..9e02d4f5 100644 --- a/apps/desktop/src/app/page.tsx +++ b/apps/desktop/src/app/page.tsx @@ -32,6 +32,7 @@ export default function CameraPage() { await invoke("reset_screen_permissions"); await invoke("reset_camera_permissions"); await invoke("reset_microphone_permissions"); + console.log("Permissions reset"); const permissions = JSON.parse( localStorage.getItem("permissions") || "{}" ); diff --git a/apps/web/package.json b/apps/web/package.json index 3688f2c4..224ebc23 100644 --- a/apps/web/package.json +++ b/apps/web/package.json @@ -1,6 +1,6 @@ { "name": "web", - "version": "0.1.7", + "version": "0.1.8", "private": true, "scripts": { "dev": "next dev",