tauri.conf.json 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. "targets": ["deb", "rpm", "dmg", "nsis", "app"],
  36. "externalBin": ["sidecars/opencode-cli"],
  37. "linux": {
  38. "rpm": {
  39. "compression": {
  40. "type": "none"
  41. }
  42. }
  43. },
  44. "macOS": {
  45. "entitlements": "./entitlements.plist"
  46. },
  47. "windows": {
  48. "nsis": {
  49. "installerIcon": "icons/dev/icon.ico",
  50. "headerImage": "assets/nsis-header.bmp",
  51. "sidebarImage": "assets/nsis-sidebar.bmp"
  52. }
  53. }
  54. },
  55. "plugins": {
  56. "deep-link": {
  57. "desktop": {
  58. "schemes": ["opencode"]
  59. }
  60. }
  61. }
  62. }