electron-builder.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. {
  2. "$schema": "https://raw.githubusercontent.com/electron-userland/electron-builder/master/packages/app-builder-lib/scheme.json",
  3. "appId": "com.mediamanager.app",
  4. "productName": "智媒通",
  5. "electronVersion": "28.1.3",
  6. "directories": {
  7. "output": "release"
  8. },
  9. "files": [
  10. "dist/**/*",
  11. "dist-electron/**/*",
  12. "!**/*.map",
  13. "!**/*.md",
  14. "!**/{.eslintrc,.eslintrc.cjs,.prettierrc,.editorconfig,tsconfig*.json}",
  15. "!**/{__tests__,test,tests,docs,example,examples,demo}/**"
  16. ],
  17. "asar": true,
  18. "compression": "maximum",
  19. "electronLanguages": ["zh-CN"],
  20. "extraResources": [
  21. {
  22. "from": "public/icons",
  23. "to": "icons"
  24. },
  25. {
  26. "from": "_bundle/server",
  27. "to": "server"
  28. },
  29. {
  30. "from": "_bundle/shared",
  31. "to": "shared"
  32. }
  33. ],
  34. "win": {
  35. "target": [
  36. {
  37. "target": "nsis",
  38. "arch": ["x64"]
  39. }
  40. ],
  41. "icon": "build/icon.png",
  42. "artifactName": "${productName}-${version}-${arch}.${ext}"
  43. },
  44. "nsis": {
  45. "oneClick": false,
  46. "allowToChangeInstallationDirectory": true,
  47. "createDesktopShortcut": true,
  48. "createStartMenuShortcut": true,
  49. "shortcutName": "智媒通"
  50. },
  51. "mac": {
  52. "target": ["dmg"],
  53. "icon": "build/icon.png",
  54. "artifactName": "${productName}-${version}.${ext}"
  55. },
  56. "linux": {
  57. "target": ["AppImage"],
  58. "icon": "build/icon.png",
  59. "artifactName": "${productName}-${version}.${ext}"
  60. }
  61. }