tauri.conf.json 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. {
  2. "$schema": "https://schema.tauri.app/config/2",
  3. "productName": "test",
  4. "version": "0.1.0",
  5. "identifier": "com.test.app",
  6. "build": {
  7. "beforeDevCommand": "yarn dev",
  8. "devUrl": "http://localhost:6555",
  9. "beforeBuildCommand": "yarn build",
  10. "frontendDist": "../dist"
  11. },
  12. "app": {
  13. "windows": [
  14. {
  15. "title": "test",
  16. "center": true,
  17. "transparent": true,
  18. "decorations": false,
  19. "minWidth": 1300,
  20. "minHeight": 800,
  21. "shadow": false,
  22. "devtools": true
  23. }
  24. ],
  25. "security": {
  26. "csp": {
  27. "default-src": "'self' customprotocol: asset:",
  28. "connect-src": "ipc: http://ipc.localhost",
  29. "font-src": ["https://fonts.gstatic.com"],
  30. "img-src": "'self' asset: http://asset.localhost blob: data:",
  31. "style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com",
  32. "media-src":"'self'"
  33. }
  34. },
  35. "macOSPrivateApi": true
  36. },
  37. "bundle": {
  38. "active": true,
  39. "targets": "all",
  40. "icon": [
  41. "icons/32x32.png",
  42. "icons/128x128.png",
  43. "icons/128x128@2x.png",
  44. "icons/icon.icns",
  45. "icons/icon.ico"
  46. ]
  47. }
  48. }