openpencil/desktop/tauri.conf.json
Danila Poyarkov ddf415ec30 feat(tauri): support desktop file associations
- Register .fig and .pen files with desktop bundles
- Open associated files on startup and via single-instance handoff
- Reuse the existing Tauri file open flow without broad filesystem scopes
2026-05-12 16:12:16 +03:00

67 lines
1.7 KiB
JSON

{
"$schema": "https://schema.tauri.app/config/2",
"productName": "OpenPencil",
"version": "0.11.8",
"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
}
],
"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": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDI2NDdCODAwQkQxMkU0QzUKUldURjVCSzlBTGhISnJORk1HOVlXREVDbXJycWs5U2xxSVBYa1dLMzRoYTVGRVYrUEhmTS9tWWwK",
"endpoints": ["https://github.com/open-pencil/open-pencil/releases/latest/download/latest.json"],
"windows": {
"installMode": "passive"
}
}
}
}