electron-builder icon indicating copy to clipboard operation
electron-builder copied to clipboard

electron-updater: Managing Updates for Both arm64 and x64 macOS Architectures

Open alminQSD opened this issue 5 months ago • 2 comments

  • Electron-Builder Version: 24.9.1
  • Node Version: v14.17.0
  • Electron Version: 13.1.6
  • Electron Type (current, beta, nightly): current
  • Electron Updater Version: 6.1.7
  • Target: arm64 & x64

Hello electron-updater team,

I am currently working on a project using ElectronJS and I have a specific use case involving update distribution for different architectures (arm64 and x64) on macOS. My goal is to streamline the update process for users on both platforms by ensuring they receive the correct updates tailored for their specific architecture.

Issue Description: I plan to upload separate DMG files for arm64 and x64 architectures, along with their respective latest-mac.yml files, to different folders on our CDN FTP. The structure will look something like this:

  • /x64/ - MyApp-x64.dmg - latest-mac.yml

  • /arm64/ - MyApp-arm64.dmg - latest-mac.yml

I would like to configure electron-updater in such a way that it can differentiate between the latest-mac.yml files for arm64 and x64, and check for updates in the corresponding platform-specific folders on our CDN.

Questions: Is there a way to configure electron-updater to recognize and differentiate between latest-mac.yml files for arm64 and x64, and to look in the respective folders based on the user's architecture? If such a configuration is possible, could you provide guidance or documentation on how to implement this? Are there any best practices or recommendations for handling such a scenario with electron-updater? I believe having this feature would greatly enhance the experience for users with different macOS architectures, ensuring they receive the most optimized version of the application for their system.

Thank you for your time and assistance. Any guidance or suggestions would be greatly appreciated.

alminQSD avatar Jan 10 '24 17:01 alminQSD