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

Universal Auto-Update Upgrade?

Open AndrewEQ opened this issue 1 year ago • 3 comments

I have a separate build for macOS x64 and arm that each have auto-updaters.

I now have a universal build, how can I update the users with either of the previous builds installed to auto-update with the universal build? Ideally moving the user install base over to the universal build to receive auto-updates from the universal auto-updater would be great.

AndrewEQ avatar Oct 02 '24 15:10 AndrewEQ

I think should already work out-of-the-box based on this logic if universal builds are provided as the top entry in the app updater latest-mac.yml (I think). Is it not working for you? https://github.com/electron-userland/electron-builder/blob/899291193a8343636aa379df1da992c7bd8326fd/packages/electron-updater/src/MacUpdater.ts#L81-L87 https://github.com/electron-userland/electron-builder/blob/899291193a8343636aa379df1da992c7bd8326fd/packages/electron-updater/src/providers/Provider.ts#L83-L96 From the logic, it looks like we auto-install arm64 apps on arm64 (smaller download size), otherwise, if no arm64 asset is present in your release assets, it defaults to the first entry in the latest-mac.yml. Would you be willing to confirm that universal is the first entry in the release assets?

mmaietta avatar Oct 02 '24 16:10 mmaietta

Oh, I've only tried with the universal being the only entry available which I don't think worked (unless it was just taking really long to download).

Lemme try with existing entry and universal at top...

AndrewEQ avatar Oct 02 '24 17:10 AndrewEQ

@mmaietta do the entry names make a difference (such as higher version number) or is just based on order or the "path"? The universal zip has universal-mac in it and doesn't match the path name but does have the same version number.

AndrewEQ avatar Oct 02 '24 18:10 AndrewEQ

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.

github-actions[bot] avatar Mar 01 '25 00:03 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity.

github-actions[bot] avatar Apr 01 '25 00:04 github-actions[bot]