tauri.conf.json 1.8 KB

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