openpencil/desktop/tauri.conf.json
rcoenen b8076adfbb
fix(desktop): enable image drag-and-drop in the Tauri window
Tauri's dragDropEnabled defaults to true, which makes the native OS file
drop intercept and swallow the event so the webview's HTML5 drop handler
(useCanvasDrop) never fires — drag-and-drop of images worked in the browser
but failed in the desktop app. Set dragDropEnabled: false so the webview
receives HTML5 drag/drop natively and the existing web handler works on
desktop too. No web-side code changes.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Co-authored-by: Danila Poyarkov <dev@dannote.net>
2026-06-30 09:50:15 +03:00

68 lines
1.8 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "OpenPencil",
"version": "0.13.2",
"identifier": "net.dannote.open-pencil",
"build": {
"beforeDevCommand": "bun run generate:tauri-menu && bun run dev",
"devUrl": "http://localhost:1420",
"beforeBuildCommand": "bun run generate:tauri-menu && bun run build",
"frontendDist": "../dist"
},
"app": {
"windows": [
{
"title": "OpenPencil",
"width": 1280,
"height": 800,
"dragDropEnabled": false
}
],
"security": {
"csp": null
}
},
"bundle": {
"active": true,
"targets": "all",
"createUpdaterArtifacts": true,
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.icns",
"icons/icon.ico"
],
"fileAssociations": [
{
"ext": ["pen"],
"name": "Pencil Design File",
"description": "Pencil design file",
"role": "Editor",
"mimeType": "application/x-pencil-pen",
"rank": "Alternate"
},
{
"ext": ["fig"],
"name": "Figma Design File",
"description": "Figma design file",
"role": "Editor",
"mimeType": "application/x-figma",
"rank": "Alternate"
}
],
"macOS": {
"signingIdentity": "Developer ID Application: Danila Poyarkov (N7D7M3Q3CD)"
}
},
"plugins": {
"updater": {
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDU4QzBCRjBFNzhFNEVEMDEKUldRQjdlUjREci9BV0hLaEJPeG5tRXdsWkhQWFdEa0VxcEtNR1o1S2VJeGlKU1VDTldQTi9wYncK",
"endpoints": ["https://github.com/open-pencil/open-pencil/releases/latest/download/latest.json"],
"windows": {
"installMode": "passive"
}
}
}
}