tauri.conf.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "$schema": "../node_modules/@tauri-apps/cli/schema.json",
  3. "package": {
  4. "productName": "Clash Verge",
  5. "version": "1.6.4"
  6. },
  7. "build": {
  8. "distDir": "../dist",
  9. "devPath": "http://localhost:3000/",
  10. "beforeDevCommand": "pnpm run web:dev",
  11. "beforeBuildCommand": "pnpm run web:build"
  12. },
  13. "tauri": {
  14. "bundle": {
  15. "active": true,
  16. "identifier": "io.github.clash-verge-rev.clash-verge-rev",
  17. "icon": [
  18. "icons/32x32.png",
  19. "icons/128x128.png",
  20. "icons/128x128@2x.png",
  21. "icons/icon.icns",
  22. "icons/icon.ico"
  23. ],
  24. "resources": ["resources"],
  25. "externalBin": ["sidecar/clash-meta", "sidecar/clash-meta-alpha"],
  26. "copyright": "© 2022 zzzgydi All Rights Reserved",
  27. "category": "DeveloperTool",
  28. "shortDescription": "A Clash Meta GUI based on tauri.",
  29. "longDescription": "A Clash Meta GUI based on tauri."
  30. },
  31. "updater": {
  32. "active": true,
  33. "endpoints": [
  34. "https://mirror.ghproxy.com/https://github.com/clash-verge-rev/clash-verge-rev/releases/download/updater/update-proxy.json",
  35. "https://github.com/clash-verge-rev/clash-verge-rev/releases/download/updater/update.json"
  36. ],
  37. "dialog": false,
  38. "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEQyOEMyRjBCQkVGOUJEREYKUldUZnZmbStDeStNMHU5Mmo1N24xQXZwSVRYbXA2NUpzZE5oVzlqeS9Bc0t6RVV4MmtwVjBZaHgK"
  39. },
  40. "allowlist": {
  41. "shell": {
  42. "all": true
  43. },
  44. "window": {
  45. "all": true
  46. },
  47. "process": {
  48. "all": true
  49. },
  50. "globalShortcut": {
  51. "all": true
  52. },
  53. "clipboard": {
  54. "all": true
  55. },
  56. "notification": {
  57. "all": true
  58. },
  59. "dialog": {
  60. "all": false,
  61. "open": true
  62. },
  63. "protocol": {
  64. "asset": true,
  65. "assetScope": ["$APPDATA/**", "$RESOURCE/../**", "**"]
  66. },
  67. "path": {
  68. "all": true
  69. },
  70. "fs": {
  71. "exists": true,
  72. "readFile": true,
  73. "scope": ["$APPDATA/**", "$RESOURCE/../**", "**"]
  74. }
  75. },
  76. "windows": [],
  77. "security": {
  78. "csp": "script-src 'unsafe-eval' 'self'; default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self'; img-src asset: http: https: data: 'self';"
  79. }
  80. }
  81. }