Paste fix: - Switch from std::process::Command to tokio::process::Command to avoid blocking the async runtime (was stalling the paste action) - Use explicit AppleScript that activates the frontmost app before sending Cmd+V keystroke, making paste more reliable - Increase delay to 300ms for macOS app refocus - Add tokio "process" feature Settings highlight fix: - SettingsPanel now uses local useState for immediate optimistic updates when clicking position/history buttons, instead of waiting for the parent prop round-trip - Buttons highlight instantly on click, then sync with backend Config fix: - titleBarStyle must be PascalCase "Overlay" in Tauri 2 config (was lowercase "overlay" which caused a startup error) Co-authored-by: Cursor <cursoragent@cursor.com>
89 lines
2.6 KiB
JSON
89 lines
2.6 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-config-schema/schema.json",
|
|
"productName": "maCopy",
|
|
"version": "0.1.0",
|
|
"identifier": "com.macopy.app",
|
|
"build": {
|
|
"frontendDist": "../dist",
|
|
"devUrl": "http://localhost:1420",
|
|
"beforeDevCommand": "npm run dev",
|
|
"beforeBuildCommand": "npm run build"
|
|
},
|
|
"app": {
|
|
"withGlobalTauri": true,
|
|
"windows": [
|
|
{
|
|
"label": "main",
|
|
"title": "maCopy",
|
|
"width": 420,
|
|
"height": 560,
|
|
"resizable": true,
|
|
"minWidth": 320,
|
|
"minHeight": 300,
|
|
"decorations": true,
|
|
"titleBarStyle": "Overlay",
|
|
"hiddenTitle": true,
|
|
"visible": false,
|
|
"alwaysOnTop": true,
|
|
"skipTaskbar": true,
|
|
"center": true
|
|
}
|
|
],
|
|
"security": {
|
|
"capabilities": [
|
|
{
|
|
"identifier": "default",
|
|
"description": "Default capabilities for maCopy",
|
|
"windows": ["main"],
|
|
"permissions": [
|
|
"core:default",
|
|
"core:window:default",
|
|
"core:window:allow-show",
|
|
"core:window:allow-hide",
|
|
"core:window:allow-set-focus",
|
|
"core:window:allow-close",
|
|
"core:window:allow-is-visible",
|
|
"core:window:allow-set-size",
|
|
"core:window:allow-set-position",
|
|
"core:window:allow-inner-size",
|
|
"core:window:allow-outer-size",
|
|
"core:window:allow-center",
|
|
"core:window:allow-current-monitor",
|
|
"core:window:allow-cursor-position",
|
|
"core:window:allow-start-dragging",
|
|
"core:window:allow-start-resize-dragging",
|
|
"core:window:allow-scale-factor",
|
|
"core:event:default",
|
|
"core:event:allow-emit",
|
|
"core:event:allow-listen",
|
|
"clipboard-manager:allow-read-text",
|
|
"clipboard-manager:allow-write-text",
|
|
"clipboard-manager:allow-read-image",
|
|
"clipboard-manager:allow-write-image",
|
|
"clipboard-manager:allow-clear",
|
|
"global-shortcut:allow-register",
|
|
"global-shortcut:allow-unregister",
|
|
"autostart:allow-enable",
|
|
"autostart:allow-disable",
|
|
"autostart:allow-is-enabled"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"bundle": {
|
|
"active": true,
|
|
"targets": "all",
|
|
"icon": [
|
|
"icons/32x32.png",
|
|
"icons/128x128.png",
|
|
"icons/128x128@2x.png",
|
|
"icons/icon.icns",
|
|
"icons/icon.ico"
|
|
],
|
|
"macOS": {
|
|
"minimumSystemVersion": "10.15"
|
|
}
|
|
}
|
|
}
|