electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.51k stars 1.73k forks source link

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

Open alminQSD opened 6 months ago

alminQSD commented 6 months ago

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:

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.

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

pierr3 commented 2 months ago

Would also be interested in any pointers for this. Releasing a universal build is not ideal due to app size