tauri.conf.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "$schema": "https://schema.tauri.app/config/2",
  3. "productName": "QMaiWrite",
  4. "version": "3.2.0",
  5. "identifier": "com.qingmuai.writer",
  6. "build": {
  7. "beforeDevCommand": "npm run dev",
  8. "devUrl": "http://localhost:1420",
  9. "beforeBuildCommand": "npx vite build",
  10. "frontendDist": "../dist"
  11. },
  12. "app": {
  13. "windows": [
  14. {
  15. "title": "青幕AI写作",
  16. "width": 1200,
  17. "height": 800,
  18. "resizable": true,
  19. "fullscreen": false
  20. }
  21. ],
  22. "security": {
  23. "csp": "default-src 'self'; connect-src 'self' https: http:; img-src 'self' asset: https://asset.localhost; media-src 'self' asset: https://asset.localhost; style-src 'self' 'unsafe-inline'",
  24. "assetProtocol": {
  25. "enable": true,
  26. "scope": ["**"]
  27. }
  28. }
  29. },
  30. "bundle": {
  31. "active": true,
  32. "targets": ["nsis", "app"],
  33. "resources": {
  34. "../skills/**/*": "skills/"
  35. },
  36. "icon": [
  37. "icons/32x32.png",
  38. "icons/128x128.png",
  39. "icons/128x128@2x.png",
  40. "icons/icon.icns",
  41. "icons/icon.ico"
  42. ]
  43. },
  44. "plugins": {
  45. "updater": {
  46. "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEFFRTYxMjcyNzdDQkIzRDkKUldUWnM4dDNjaExtcmkvVGxmWFU1L3U4R1Z1b1BPV1lxaDZJWGROK3lyUy9GREd6b0JmWnNXb1kK",
  47. "endpoints": [
  48. "https://github.com/Mochocyang/QMAI/releases/latest/download/latest.json"
  49. ]
  50. }
  51. }
  52. }