tauri.conf.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {
  2. "$schema": "https://schema.tauri.app/config/2",
  3. "productName": "OpenCode Dev",
  4. "identifier": "ai.opencode.desktop.dev",
  5. "mainBinaryName": "OpenCode",
  6. "version": "../package.json",
  7. "build": {
  8. "beforeDevCommand": "bun run dev",
  9. "devUrl": "http://localhost:1420",
  10. "beforeBuildCommand": "bun run build",
  11. "frontendDist": "../dist"
  12. },
  13. "app": {
  14. "windows": [
  15. {
  16. "label": "main",
  17. "create": false,
  18. "title": "OpenCode",
  19. "url": "/",
  20. "decorations": true,
  21. "dragDropEnabled": false,
  22. "zoomHotkeysEnabled": false,
  23. "titleBarStyle": "Overlay",
  24. "hiddenTitle": true,
  25. "trafficLightPosition": { "x": 12.0, "y": 18.0 }
  26. }
  27. ],
  28. "withGlobalTauri": true,
  29. "security": {
  30. "csp": null
  31. },
  32. "macOSPrivateApi": true
  33. },
  34. "bundle": {
  35. "icon": [
  36. "icons/dev/32x32.png",
  37. "icons/dev/128x128.png",
  38. "icons/dev/[email protected]",
  39. "icons/dev/icon.icns",
  40. "icons/dev/icon.ico"
  41. ],
  42. "active": true,
  43. "targets": ["deb", "rpm", "dmg", "nsis", "app"],
  44. "externalBin": ["sidecars/opencode-cli"],
  45. "linux": {
  46. "rpm": {
  47. "compression": {
  48. "type": "none"
  49. }
  50. }
  51. },
  52. "macOS": {
  53. "entitlements": "./entitlements.plist"
  54. },
  55. "windows": {
  56. "nsis": {
  57. "installerIcon": "icons/dev/icon.ico",
  58. "headerImage": "assets/nsis-header.bmp",
  59. "sidebarImage": "assets/nsis-sidebar.bmp"
  60. }
  61. }
  62. },
  63. "plugins": {
  64. "deep-link": {
  65. "desktop": {
  66. "schemes": ["opencode"]
  67. }
  68. }
  69. }
  70. }