electron-builder.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. ],
  13. "extraResources": [
  14. {
  15. "from": "public/icons",
  16. "to": "icons"
  17. },
  18. {
  19. "from": "_bundle/server",
  20. "to": "server"
  21. },
  22. {
  23. "from": "_bundle/shared",
  24. "to": "shared"
  25. },
  26. {
  27. "from": "_bundle/playwright",
  28. "to": "playwright"
  29. }
  30. ],
  31. "win": {
  32. "target": [
  33. {
  34. "target": "nsis",
  35. "arch": ["x64"]
  36. }
  37. ],
  38. "icon": "build/icon.png",
  39. "artifactName": "${productName}-${version}-${arch}.${ext}"
  40. },
  41. "nsis": {
  42. "oneClick": false,
  43. "allowToChangeInstallationDirectory": true,
  44. "createDesktopShortcut": true,
  45. "createStartMenuShortcut": true,
  46. "shortcutName": "智媒通"
  47. },
  48. "mac": {
  49. "target": ["dmg"],
  50. "icon": "build/icon.png",
  51. "artifactName": "${productName}-${version}.${ext}"
  52. },
  53. "linux": {
  54. "target": ["AppImage"],
  55. "icon": "build/icon.png",
  56. "artifactName": "${productName}-${version}.${ext}"
  57. }
  58. }