Skip to content

Commit

Permalink
release: 0.1.8 - permissions reset fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
richiemcilroy committed Mar 24, 2024
1 parent 1a50b78 commit 18ec3ba
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "desktop",
"private": true,
"version": "0.1.7",
"version": "0.1.8",
"scripts": {
"dev": "tauri dev",
"build": "tsc && next build",
Expand Down
5 changes: 4 additions & 1 deletion apps/desktop/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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!())
Expand Down
2 changes: 1 addition & 1 deletion apps/desktop/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "Cap",
"version": "0.1.7"
"version": "0.1.8"
},
"tauri": {
"allowlist": {
Expand Down
1 change: 1 addition & 0 deletions apps/desktop/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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") || "{}"
);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web",
"version": "0.1.7",
"version": "0.1.8",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down

1 comment on commit 18ec3ba

@vercel
Copy link

@vercel vercel bot commented on 18ec3ba Mar 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.