tauri.conf.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "$schema": "../../../core/tauri-config-schema/schema.json",
  3. "productName": "Tauri API",
  4. "version": "1.0.0",
  5. "identifier": "com.tauri.api",
  6. "build": {
  7. "frontendDist": "../dist",
  8. "devUrl": "http://localhost:1420",
  9. "beforeDevCommand": "yarn dev",
  10. "beforeBuildCommand": "yarn build"
  11. },
  12. "app": {
  13. "withGlobalTauri": true,
  14. "macOSPrivateApi": true,
  15. "security": {
  16. "pattern": {
  17. "use": "isolation",
  18. "options": {
  19. "dir": "../isolation-dist/"
  20. }
  21. },
  22. "csp": {
  23. "default-src": "'self' customprotocol: asset:",
  24. "connect-src": "ipc: http://ipc.localhost",
  25. "font-src": ["https://fonts.gstatic.com"],
  26. "img-src": "'self' asset: http://asset.localhost blob: data:",
  27. "style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com"
  28. },
  29. "freezePrototype": true,
  30. "assetProtocol": {
  31. "enable": true,
  32. "scope": {
  33. "allow": ["$APPDATA/db/**", "$RESOURCE/**"],
  34. "deny": ["$APPDATA/db/*.stronghold"]
  35. }
  36. }
  37. }
  38. },
  39. "plugins": {
  40. "cli": {
  41. "description": "Tauri API example",
  42. "args": [
  43. {
  44. "short": "c",
  45. "name": "config",
  46. "takesValue": true,
  47. "description": "Config path"
  48. },
  49. {
  50. "short": "t",
  51. "name": "theme",
  52. "takesValue": true,
  53. "description": "App theme",
  54. "possibleValues": ["light", "dark", "system"]
  55. },
  56. {
  57. "short": "v",
  58. "name": "verbose",
  59. "description": "Verbosity level"
  60. }
  61. ],
  62. "subcommands": {
  63. "update": {
  64. "description": "Updates the app",
  65. "args": [
  66. {
  67. "short": "b",
  68. "name": "background",
  69. "description": "Update in background"
  70. }
  71. ]
  72. }
  73. }
  74. }
  75. },
  76. "bundle": {
  77. "active": true,
  78. "icon": [
  79. "../../.icons/32x32.png",
  80. "../../.icons/128x128.png",
  81. "../../.icons/128x128@2x.png",
  82. "../../.icons/icon.icns",
  83. "../../.icons/icon.ico"
  84. ],
  85. "windows": {
  86. "wix": {
  87. "language": {
  88. "en-US": {},
  89. "pt-BR": {
  90. "localePath": "locales/pt-BR.wxl"
  91. }
  92. }
  93. }
  94. }
  95. }
  96. }