electron-builder.json5 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. target: 'portable',
  62. arch: 'x64'
  63. },
  64. {
  65. target: 'nsis',
  66. arch: 'x64'
  67. }
  68. ]
  69. },
  70. portable: {
  71. artifactName: '${productName} ${version}_${arch} Portable.${ext}'
  72. },
  73. nsis: {
  74. oneClick: true
  75. },
  76. linux: {
  77. executableName: 'vutron',
  78. icon: 'buildAssets/icons',
  79. category: 'Utility',
  80. target: [
  81. {
  82. target: 'snap',
  83. arch: 'x64'
  84. },
  85. {
  86. target: 'deb',
  87. arch: 'x64'
  88. },
  89. {
  90. target: 'rpm',
  91. arch: 'x64'
  92. }
  93. ]
  94. }
  95. }