g3rv4 / OnChrome

A Firefox extension to open certain sites on Chrome. Every. Freaking. Time
https://onchrome.gervas.io
MIT License
20 stars 2 forks source link

Building on ARM64 Apple Hardware #12

Open reb00tz opened 4 days ago

reb00tz commented 4 days ago

Just got an Apple silicon Mac. Without Rosetta (x64 emulation), I was getting the "Bad CPU type in executable" for the OnChrome supporting application, even when re-building from source.

Turns out BuildAppMacOS.ps1, line #42, needs to change "-r osx-x64" to "-r osx-arm64".

Have not found an easy PS way to determine x64 or ARM64 at the moment to warrant a pull request, but wanted to highlight this.

g3rv4 commented 4 days ago

hi there :) I'm no longer using firefox (cries). I'm tempted to archive this repo (also, I no longer have an apple dev account or code signing cert for windows) but it's kind of still working so I won't do that. I'll leave this open so that people find it :)