From b9c6d9d8779fccc53273a0d69854fd3b55ddf184 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Wed, 12 Jun 2024 00:23:32 -0700 Subject: [PATCH] Entitlement for v8/Deno --- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/macos/entitlements.plist | 16 ++++++++++------ src-web/hooks/useClipboardText.ts | 12 +++++++----- 4 files changed, 19 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 1da63c59..8ed2cafe 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "yaak-app", + "name": "yaak", "private": true, "version": "0.0.0", "type": "module", diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index b7b39d85..27a78f4f 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -8136,7 +8136,7 @@ dependencies = [ ] [[package]] -name = "yaak-app" +name = "yaak" version = "0.0.0" dependencies = [ "anyhow", diff --git a/src-tauri/macos/entitlements.plist b/src-tauri/macos/entitlements.plist index 6ab4c774..67fd398e 100644 --- a/src-tauri/macos/entitlements.plist +++ b/src-tauri/macos/entitlements.plist @@ -1,10 +1,14 @@ - - - - - - + + + com.apple.security.cs.allow-unsigned-executable-memory + + + + + + + diff --git a/src-web/hooks/useClipboardText.ts b/src-web/hooks/useClipboardText.ts index cb2d2ead..50122a20 100644 --- a/src-web/hooks/useClipboardText.ts +++ b/src-web/hooks/useClipboardText.ts @@ -18,11 +18,13 @@ export function useClipboardText() { const setText = useCallback( (text: string) => { writeText(text).catch(console.error); - toast.show({ - id: 'copied', - variant: 'copied', - message: 'Copied to clipboard', - }); + if (text != '') { + toast.show({ + id: 'copied', + variant: 'copied', + message: 'Copied to clipboard', + }); + } setValue(text); }, [setValue, toast],