defaultConfig.ts 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. export default {
  2. package: {
  3. productName: 'app',
  4. version: '0.1.0'
  5. },
  6. build: {
  7. distDir: '../dist',
  8. devPath: 'http://localhost:4000',
  9. beforeDevCommand: '',
  10. beforeBuildCommand: ''
  11. },
  12. tauri: {
  13. bundle: {
  14. active: true,
  15. targets: 'all', // or an array of targets
  16. identifier: 'com.tauri.dev',
  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: [],
  25. externalBin: [],
  26. copyright: '',
  27. category: 'DeveloperTool',
  28. shortDescription: '',
  29. longDescription: '',
  30. deb: {
  31. depends: [],
  32. useBootstrapper: false
  33. },
  34. osx: {
  35. frameworks: [],
  36. minimumSystemVersion: '',
  37. useBootstrapper: false,
  38. exceptionDomain: ''
  39. }
  40. },
  41. allowlist: {
  42. all: true
  43. },
  44. windows: [
  45. {
  46. title: 'Tauri App',
  47. width: 800,
  48. height: 600,
  49. resizable: true,
  50. fullscreen: false
  51. }
  52. ],
  53. security: {
  54. csp:
  55. "default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'"
  56. }
  57. }
  58. }