tauri.conf.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. }
  19. ],
  20. "withGlobalTauri": true,
  21. "security": {
  22. "csp": null
  23. },
  24. "macOSPrivateApi": true
  25. },
  26. "bundle": {
  27. "icon": [
  28. "icons/dev/32x32.png",
  29. "icons/dev/128x128.png",
  30. "icons/dev/[email protected]",
  31. "icons/dev/icon.icns",
  32. "icons/dev/icon.ico"
  33. ],
  34. "active": true,
  35. "category": "DeveloperTool",
  36. "targets": ["deb", "rpm", "dmg", "nsis", "app"],
  37. "externalBin": ["sidecars/opencode-cli"],
  38. "linux": {
  39. "rpm": {
  40. "compression": {
  41. "type": "none"
  42. }
  43. }
  44. },
  45. "macOS": {
  46. "entitlements": "./entitlements.plist"
  47. },
  48. "windows": {
  49. "signCommand": {
  50. "cmd": "powershell",
  51. "args": ["-ExecutionPolicy", "Bypass", "-File", "../../../script/sign-windows.ps1", "%1"]
  52. },
  53. "nsis": {
  54. "installerIcon": "icons/dev/icon.ico",
  55. "headerImage": "assets/nsis-header.bmp",
  56. "sidebarImage": "assets/nsis-sidebar.bmp"
  57. }
  58. }
  59. },
  60. "plugins": {
  61. "deep-link": {
  62. "desktop": {
  63. "schemes": ["opencode"]
  64. }
  65. }
  66. }
  67. }