tauri.conf.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. {
  2. "$schema": "../../../core/config-schema/schema.json",
  3. "build": {
  4. "distDir": "../dist",
  5. "devPath": "http://localhost:5173",
  6. "beforeDevCommand": "yarn dev",
  7. "beforeBuildCommand": "yarn build"
  8. },
  9. "package": {
  10. "productName": "Tauri API",
  11. "version": "1.0.0"
  12. },
  13. "tauri": {
  14. "pattern": {
  15. "use": "isolation",
  16. "options": {
  17. "dir": "../isolation-dist/"
  18. }
  19. },
  20. "macOSPrivateApi": true,
  21. "cli": {
  22. "description": "Tauri API example",
  23. "args": [
  24. {
  25. "short": "c",
  26. "name": "config",
  27. "takesValue": true,
  28. "description": "Config path"
  29. },
  30. {
  31. "short": "t",
  32. "name": "theme",
  33. "takesValue": true,
  34. "description": "App theme",
  35. "possibleValues": ["light", "dark", "system"]
  36. },
  37. {
  38. "short": "v",
  39. "name": "verbose",
  40. "multipleOccurrences": true,
  41. "description": "Verbosity level"
  42. }
  43. ],
  44. "subcommands": {
  45. "update": {
  46. "description": "Updates the app",
  47. "args": [
  48. {
  49. "short": "b",
  50. "name": "background",
  51. "description": "Update in background"
  52. }
  53. ]
  54. }
  55. }
  56. },
  57. "bundle": {
  58. "active": true,
  59. "identifier": "com.tauri.api",
  60. "icon": [
  61. "../../.icons/32x32.png",
  62. "../../.icons/128x128.png",
  63. "../../.icons/128x128@2x.png",
  64. "../../.icons/icon.icns",
  65. "../../.icons/icon.ico"
  66. ],
  67. "windows": {
  68. "wix": {
  69. "language": {
  70. "en-US": {},
  71. "pt-BR": {
  72. "localePath": "locales/pt-BR.wxl"
  73. }
  74. }
  75. }
  76. }
  77. },
  78. "updater": {
  79. "active": true,
  80. "dialog": false,
  81. "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE5QzMxNjYwNTM5OEUwNTgKUldSWTRKaFRZQmJER1h4d1ZMYVA3dnluSjdpN2RmMldJR09hUFFlZDY0SlFqckkvRUJhZDJVZXAK",
  82. "endpoints": [
  83. "https://tauri-update-server.vercel.app/update/{{target}}/{{current_version}}"
  84. ]
  85. },
  86. "allowlist": {
  87. "all": true,
  88. "fs": {
  89. "scope": {
  90. "allow": ["$APPDATA/db/**", "$DOWNLOAD/**", "$RESOURCE/**"],
  91. "deny": ["$APPDATA/db/*.stronghold"]
  92. }
  93. },
  94. "shell": {
  95. "open": true,
  96. "scope": [
  97. {
  98. "name": "sh",
  99. "cmd": "sh",
  100. "args": ["-c", { "validator": "\\S+" }]
  101. },
  102. {
  103. "name": "cmd",
  104. "cmd": "cmd",
  105. "args": ["/C", { "validator": "\\S+" }]
  106. }
  107. ]
  108. },
  109. "protocol": {
  110. "asset": true,
  111. "assetScope": {
  112. "allow": ["$APPDATA/db/**", "$RESOURCE/**"],
  113. "deny": ["$APPDATA/db/*.stronghold"]
  114. }
  115. },
  116. "http": {
  117. "scope": ["http://localhost:3003"]
  118. }
  119. },
  120. "windows": [],
  121. "security": {
  122. "csp": {
  123. "default-src": "'self' customprotocol: asset:",
  124. "font-src": ["https://fonts.gstatic.com"],
  125. "img-src": "'self' asset: https://asset.localhost blob: data:",
  126. "style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com"
  127. },
  128. "freezePrototype": true
  129. },
  130. "systemTray": {
  131. "iconPath": "../../.icons/tray_icon_with_transparency.png",
  132. "iconAsTemplate": true,
  133. "menuOnLeftClick": false
  134. }
  135. }
  136. }