tauri.conf.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. "decorations": false,
  17. "width": 500,
  18. "height": 600,
  19. "alwaysOnTop": true,
  20. "resizable": false,
  21. "visible": false,
  22. "shadow": true
  23. }
  24. ],
  25. "security": {
  26. "csp": {
  27. "default-src": "blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' customprotocol: asset:",
  28. "script-src": "* 'self' 'unsafe-eval' 'wasm-unsafe-eval' 'unsafe-inline'",
  29. "connect-src": "ipc: http://ipc.localhost https://api.hoppscotch.io *",
  30. "font-src": "https://fonts.gstatic.com data: 'self' *",
  31. "img-src": "'self' asset: http://asset.localhost blob: data: customprotocol: *",
  32. "style-src": "'unsafe-inline' 'self' https://fonts.googleapis.com data: asset: *",
  33. "worker-src": "* 'self' data: 'unsafe-eval' blob:"
  34. }
  35. }
  36. },
  37. "plugins": {
  38. "deep-link": {
  39. "desktop": {
  40. "schemes": ["io.hoppscotch.desktop"]
  41. }
  42. }
  43. },
  44. "bundle": {
  45. "active": true,
  46. "targets": "all",
  47. "createUpdaterArtifacts": true,
  48. "icon": [
  49. "icons/32x32.png",
  50. "icons/128x128.png",
  51. "icons/128x128@2x.png",
  52. "icons/icon.icns",
  53. "icons/icon.ico"
  54. ]
  55. },
  56. "plugins": {
  57. "updater": {
  58. "active": true,
  59. "endpoints": ["https://releases.hoppscotch.com/hoppscotch-desktop.json"],
  60. "dialog": true,
  61. "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDYwOURFNEY4RDRGMDQxNTgKUldSWVFmRFUrT1NkWUc1RDM0Z2ZjTHE2dG52Q3ZlYzg3ZXVpZU9KaENPWTBMd3MwY0hWa1lreDcK"
  62. }
  63. }
  64. }