pandoc-website icon indicating copy to clipboard operation
pandoc-website copied to clipboard

`Download the latest installer` button downloads arm64 package on Intel Macs

Open somelinguist opened this issue 1 year ago • 2 comments

I just got around to updating to the lastest version and discovered that the Download the latest installer for macOS button downloads the latest *-arm64-macOS.pkg on my Intel Mac. I didn't notice until I ran the installer and it failed saying it couldn't be installed on my Mac without further explanation. Then I noticed the file name and figured out what happened. I've since downloaded and installed the latest *-x86_64-macOS.pkg from the Github releases page.

However, I wonder if the Installing Pandoc page on the website can be updated to detect the correct Mac architecture automatically?

*Thanks for the Apple Silicon builds, by the way. One of these days I'll get a new Mac and greatly appreciate it. :)

somelinguist avatar May 16 '23 20:05 somelinguist

@mb21 you contributed downloadInstallerBtn.js -- any idea how to properly detect the architecture? (Also needed for linux, since we offer two archictectures there too.)

jgm avatar May 16 '23 22:05 jgm

Yeah, I remember I looked into that for https://PanWriter.com as well, and there was no reliable way to detect ARM vs Intel macs on all browsers at that time, so I just added two buttons: https://github.com/mb21/panwriter-website/commit/04760ddfdfa88d3bdc14a61c32760bd62d9246d0

Seems this is still the case: https://stackoverflow.com/questions/65146751/detecting-apple-silicon-mac-in-javascript

mb21 avatar May 17 '23 08:05 mb21