2
0

tauri.conf.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. "macOS": {
  46. "entitlements": "./entitlements.plist"
  47. },
  48. "windows": {
  49. "nsis": {
  50. "installerIcon": "icons/dev/icon.ico",
  51. "headerImage": "assets/nsis-header.bmp",
  52. "sidebarImage": "assets/nsis-sidebar.bmp"
  53. }
  54. }
  55. },
  56. "plugins": {
  57. "deep-link": {
  58. "desktop": {
  59. "schemes": ["opencode"]
  60. }
  61. }
  62. }
  63. }