Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Can we detect Apple M1/ARM machines? #202

Open
Jehan opened this issue Oct 21, 2022 · 0 comments
Open

Can we detect Apple M1/ARM machines? #202

Jehan opened this issue Oct 21, 2022 · 0 comments

Comments

@Jehan
Copy link

Jehan commented Oct 21, 2022

We use platform.js on a website to show the right "download button" for our application (GIMP). For instance, Windows people would get the Windows installer button, macOS people would get a DMG download and Linux people would get a Flatpak link.

It's of course only a default and there are links to show and get downloads for other platforms, but it has been very nice so far to be able to guess the expected binary to show (instead of 10 buttons to choose from) at first.

Lately we are getting a DMG package for Apple M1 (arm 64-bit Apple machines). We are trying to find out how to detect this. Does the current version of platform.js provide an info which is reliable enough to guess which architecture variant of macOS one is using?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant