tauri.conf.json 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. "$schema": "https://schema.tauri.app/config/2",
  3. "productName": "Hoppscotch",
  4. "version": "25.1.0-0",
  5. "identifier": "io.hoppscotch.desktop",
  6. "build": {
  7. "beforeDevCommand": "pnpm dev",
  8. "devUrl": "http://localhost:1420",
  9. "beforeBuildCommand": "pnpm build",
  10. "frontendDist": "../dist"
  11. },
  12. "app": {
  13. "windows": [
  14. {
  15. "title": "hoppscotch-desktop",
  16. "width": 800,
  17. "height": 600
  18. }
  19. ],
  20. "security": {
  21. "csp": {
  22. "default-src": "blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' customprotocol: asset:",
  23. "script-src": "* 'self' 'unsafe-eval' 'wasm-unsafe-eval' 'unsafe-inline'",
  24. "connect-src": "ipc: http://ipc.localhost https://api.hoppscotch.io *",
  25. "font-src": "https://fonts.gstatic.com data: 'self' *",
  26. "img-src": "'self' asset: http://asset.localhost blob: data: customprotocol: *",
  27. "style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com data: asset: *",
  28. "worker-src": "* 'self' data: 'unsafe-eval' blob:"
  29. }
  30. }
  31. },
  32. "plugins": {
  33. "deep-link": {
  34. "desktop": {
  35. "schemes": ["io.hoppscotch.desktop"]
  36. }
  37. }
  38. },
  39. "bundle": {
  40. "active": true,
  41. "targets": "all",
  42. "createUpdaterArtifacts": true,
  43. "icon": [
  44. "icons/32x32.png",
  45. "icons/128x128.png",
  46. "icons/128x128@2x.png",
  47. "icons/icon.icns",
  48. "icons/icon.ico"
  49. ]
  50. },
  51. "plugins": {
  52. "updater": {
  53. "active": true,
  54. "endpoints": ["https://releases.hoppscotch.com/hoppscotch-desktop.json"],
  55. "dialog": true,
  56. "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDYwOURFNEY4RDRGMDQxNTgKUldSWVFmRFUrT1NkWUc1RDM0Z2ZjTHE2dG52Q3ZlYzg3ZXVpZU9KaENPWTBMd3MwY0hWa1lreDcK"
  57. }
  58. }
  59. }