You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are distributing our Electron app for Macs using Intel and also Apple Silicon. We are using electron-builder --mac --x64 --arm64 to create an Intel and ARM version.
I need a way to know if a user on Apple Silicon has accidentally installed the Intel version of the app.
Currently I'm able to get the platform and architecture of the system.
But how can I get the architecture that the .dmg file was built for?
I thought "process.target_arch" would be it but it is always undefined.
I'm not sure it's possible to detect DMG architecture. I was under the impression that it wouldn't matter to the host system since the app within it could still be a different arch than what the OS of the DMG was built on/for.
FWIW, the electron-updater autoupdater should automatically update to the arm64 version of your app, even if the intel version was initially installed
We are distributing our Electron app for Macs using Intel and also Apple Silicon. We are using electron-builder --mac --x64 --arm64 to create an Intel and ARM version.
I need a way to know if a user on Apple Silicon has accidentally installed the Intel version of the app.
Currently I'm able to get the platform and architecture of the system.
But how can I get the architecture that the .dmg file was built for?
I thought "process.target_arch" would be it but it is always undefined.
Electron: ${process.versions["electron"]} Node: ${process.versions["node"]} Chromium: ${process.versions["chrome"]} Platform: ${os.platform} Architecture: ${os.arch} Target Arch: ${process?.target_arch} OS Version: ${process.getSystemVersion()}
The text was updated successfully, but these errors were encountered: