tauri.conf.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. {
  2. "build": {
  3. "distDir": "../dist",
  4. "devPath": "http://localhost:5000",
  5. "beforeDevCommand": "yarn dev",
  6. "beforeBuildCommand": "yarn build"
  7. },
  8. "package": {
  9. "productName": "Tauri API",
  10. "version": "../package.json"
  11. },
  12. "tauri": {
  13. "cli": {
  14. "description": "Tauri API example",
  15. "args": [
  16. {
  17. "short": "c",
  18. "name": "config",
  19. "takesValue": true,
  20. "description": "Config path"
  21. },
  22. {
  23. "short": "t",
  24. "name": "theme",
  25. "takesValue": true,
  26. "description": "App theme",
  27. "possibleValues": ["light", "dark", "system"]
  28. },
  29. {
  30. "short": "v",
  31. "name": "verbose",
  32. "multipleOccurrences": true,
  33. "description": "Verbosity level"
  34. }
  35. ],
  36. "subcommands": {
  37. "update": {
  38. "description": "Updates the app",
  39. "args": [
  40. {
  41. "short": "b",
  42. "name": "background",
  43. "description": "Update in background"
  44. }
  45. ]
  46. }
  47. }
  48. },
  49. "bundle": {
  50. "active": true,
  51. "identifier": "com.tauri.api",
  52. "icon": [
  53. "../../.icons/32x32.png",
  54. "../../.icons/128x128.png",
  55. "../../.icons/128x128@2x.png",
  56. "../../.icons/icon.icns",
  57. "../../.icons/icon.ico"
  58. ]
  59. },
  60. "updater": {
  61. "active": true,
  62. "dialog": false,
  63. "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE5QzMxNjYwNTM5OEUwNTgKUldSWTRKaFRZQmJER1h4d1ZMYVA3dnluSjdpN2RmMldJR09hUFFlZDY0SlFqckkvRUJhZDJVZXAK",
  64. "endpoints": [
  65. "https://tauri-update-server.vercel.app/update/{{target}}/{{current_version}}"
  66. ]
  67. },
  68. "allowlist": {
  69. "all": true
  70. },
  71. "windows": [
  72. {
  73. "title": "Tauri API Validation",
  74. "transparent": true
  75. }
  76. ],
  77. "security": {
  78. "csp": "default-src blob: data: filesystem: ws: wss: http: https: tauri: asset: customprotocol: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'"
  79. },
  80. "systemTray": {
  81. "iconPath": "../../.icons/tray_icon_with_transparency.png",
  82. "iconAsTemplate": true
  83. }
  84. }
  85. }