electron-builder.json5 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {
  2. productName: 'PLC-SIM',
  3. appId: 'com.plcsim.electrical-line-carrier-communication-simulator',
  4. asar: true,
  5. extends: null,
  6. compression: 'maximum',
  7. copyright: 'ⓒ 2023 ${author}',
  8. artifactName: '${productName} ${version}_${arch}.${ext}',
  9. directories: {
  10. buildResources: 'buildAssets',
  11. output: './release/${version}'
  12. },
  13. /* A list of files not to be included in the build. */
  14. files: [
  15. /*
  16. (Required) The files and folders listed below should not be included in the build.
  17. */
  18. 'dist/**/*',
  19. '!docs/**/*',
  20. '!tests/**/*',
  21. '!release/**/*'
  22. ],
  23. mac: {
  24. bundleVersion: '1.0',
  25. identity: null,
  26. hardenedRuntime: true,
  27. gatekeeperAssess: false,
  28. icon: 'buildAssets/icons/icon.icns',
  29. type: 'distribution',
  30. target: [
  31. {
  32. target: 'dmg',
  33. arch: ['x64', 'arm64', 'universal']
  34. }
  35. ]
  36. },
  37. dmg: {
  38. contents: [
  39. {
  40. x: 410,
  41. y: 150,
  42. type: 'link',
  43. path: '/Applications'
  44. },
  45. {
  46. x: 130,
  47. y: 150,
  48. type: 'file'
  49. }
  50. ],
  51. sign: false
  52. },
  53. win: {
  54. icon: 'buildAssets/icons/icon.ico',
  55. target: [
  56. {
  57. target: 'zip',
  58. arch: 'x64'
  59. }
  60. ]
  61. },
  62. portable: {
  63. artifactName: '${productName} ${version}_${arch} Portable.${ext}'
  64. },
  65. nsis: {
  66. oneClick: true
  67. },
  68. linux: {
  69. executableName: 'vutron',
  70. icon: 'buildAssets/icons',
  71. category: 'Utility',
  72. target: [
  73. {
  74. target: 'snap',
  75. arch: 'x64'
  76. },
  77. {
  78. target: 'deb',
  79. arch: 'x64'
  80. },
  81. {
  82. target: 'rpm',
  83. arch: 'x64'
  84. }
  85. ]
  86. }
  87. }