electron-builder.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. appId: org.CocoRobo.HaiXin
  2. copyright: Copytright © 2022 HaiXin LTD
  3. productName: HaiXin
  4. npmRebuild: true
  5. asar: true
  6. directories:
  7. buildResources: dist/
  8. output: dist/
  9. extraResources:
  10. - from: src/static/common/about_logo.png
  11. to: CocoRoboAbout.png
  12. - from: src/static/common/preloader_1.gif
  13. to: Preloader1.gif
  14. - from: src/static/common/download.gif
  15. to: Download.gif
  16. publish:
  17. provider: github
  18. owner: CocoRoboLabs
  19. repo: uploaderv2
  20. releaseType: release
  21. token: f4869551b495e2521e6b2c6530b5cf3cfd1c0158
  22. private: true
  23. mac:
  24. target:
  25. - pkg
  26. # category: public.app-category.tools
  27. icon: src/static/common/cocorobo_.icns
  28. hardenedRuntime: true
  29. entitlements: build/entitlements.mac.plist
  30. entitlementsInherit: build/entitlements.mac.plist
  31. artifactName: HaiXin Installer v${version}.${ext}
  32. extraFiles:
  33. - from: src/static/mac/tools
  34. to: tools
  35. extraResources:
  36. - from: src/static/common/cocorobo_black.png
  37. to: CocoRobo_Tray.png
  38. - from: src/static/common/cocorobo_white.png
  39. to: CocoRobo_Press.png
  40. - from: src/static/common/verifyCert.bash
  41. to: verifyCert.bash
  42. - from: src/static/common/ca.crt
  43. to: ca.crt
  44. dmg:
  45. contents:
  46. - type: link
  47. path: /Applications
  48. x: 410
  49. y: 220
  50. - type: file
  51. x: 130
  52. y: 220
  53. - type: file
  54. x: 270
  55. y: 80
  56. name: WiFi Module Driver's installer.pkg
  57. path: src/static/mac/Silicon Labs VCP Driver.pkg
  58. pkg:
  59. installLocation: /Applications
  60. scripts: ../build/pkg-scripts
  61. welcome: build/resources/welcome.txt
  62. win:
  63. target:
  64. - target: nsis
  65. arch:
  66. - x64
  67. - ia32
  68. icon: src/static/common/cocorobo.ico
  69. artifactName: HaiXin Installer v${version}.${ext}
  70. extraFiles:
  71. - from: src/static/win/cp210x_drivers
  72. to: cp210x_drivers
  73. - from: src/static/win/python
  74. to: python
  75. - from: src/static/win/tools
  76. to: tools
  77. extraResources:
  78. - from: src/static/common/cocorobo.ico
  79. to: CocoRobo_Tray.ico
  80. - from: src/static/win/ca.bat
  81. to: ca.bat
  82. - from: src/static/common/ca.crt
  83. to: ca.crt
  84. nsis:
  85. oneClick: false
  86. perMachine: true
  87. allowToChangeInstallationDirectory: true
  88. allowElevation: true
  89. installerSidebar: src/static/win/installer-sidebar-image.bmp
  90. include: src/static/win/installer.nsh
  91. linux:
  92. target:
  93. - deb
  94. - AppImage
  95. icon: src/static/common/cocorobo.png
  96. artifactName: HaiXin Installer v${version}.${ext}
  97. extraFiles:
  98. - from: src/static/linux/tools
  99. to: tools
  100. extraResources:
  101. - from: src/static/common/cocorobo_black.png
  102. to: CocoRobo_Tray.png