-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Idea: if mac arm64 build becomes available, download this update on ARM macs #5672
Comments
Would using |
Hi, sorry, I don't quite understand that. Switching defaultArch would work for us as long as Intel macs are upgrading to Intel versions, and Intel on ARM users should upgrade to ARM version. |
Actually, this functionality already exists without any electron-builder config changes.
|
Ah, you are right, the comment mislead me. Indeed, thank you for pointing it out. |
@mmaietta I'm struggling to see how this will work since apps running in Rosetta will have the emulated process.arch value (x64), so they will get updated to the x64 version and not arm64. Correct me if I'm wrong. |
Can we reopen this issue? |
@praneetrohida would you be willing to tackle this? |
@mmaietta I can open a PR but I don't have access to an arm64 mac machine to test it |
I will make a PR today (Tallinn time) and I have an ARM Mac :) |
@mmaietta @praneetrohida I only tested for updating Intel app on M1 to another Intel app on M1. I didn't think of testing the other scenario you mentioned. It makes 100% sense to me though. I suspect that you're correct that it will not allow an emulated Intel version to update to an M1 native app. |
Based on this: https://stackoverflow.com/questions/65346260/get-real-architecture-of-m1-mac-regardless-of-rosetta the current implementation won't work as suggested by @praneetrohida I will post PR soon |
macOS universal Electron build are twice as big (and more).
Because of that at FYM.fm we plan to provide separate builds for x64 and ARM64 architecture for macOS.
Currently this is problematic for our current users that are on x64 version of the app, running via Rosetta.
Even if we release the new ARM64 build, the users will be stuck on Intel version unless they download app from scratch from our website.
I checked the code and the fix seems easy, but I wanted to discuss first if this is something that electron-updater would like to do and if I should make a pull request for it.
Basically if I am on ARM Mac, using Intel version, I would like the updater to download ARM version for the update.
The text was updated successfully, but these errors were encountered: