tauri.conf.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "$schema": "https://schema.tauri.app/config/2",
  3. "productName": "QMaiWrite",
  4. "version": "3.2.7",
  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. "additionalBrowserArgs": "--disable-background-timer-throttling --disable-backgrounding-occluded-windows --disable-renderer-backgrounding"
  21. }
  22. ],
  23. "security": {
  24. "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'",
  25. "assetProtocol": {
  26. "enable": true,
  27. "scope": ["**"]
  28. }
  29. }
  30. },
  31. "bundle": {
  32. "active": true,
  33. "targets": ["nsis", "app"],
  34. "resources": {
  35. "../skills/**/*": "skills/"
  36. },
  37. "icon": [
  38. "icons/32x32.png",
  39. "icons/128x128.png",
  40. "icons/128x128@2x.png",
  41. "icons/icon.icns",
  42. "icons/icon.ico"
  43. ]
  44. },
  45. "plugins": {
  46. "updater": {
  47. "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEFFRTYxMjcyNzdDQkIzRDkKUldUWnM4dDNjaExtcmkvVGxmWFU1L3U4R1Z1b1BPV1lxaDZJWGROK3lyUy9GREd6b0JmWnNXb1kK",
  48. "endpoints": [
  49. "https://github.com/Mochocyang/QMAI/releases/latest/download/latest.json"
  50. ]
  51. }
  52. }
  53. }