fix: add support for arm64 when using npm

master
Dominic Elm 3 years ago
parent 713868b204
commit 08825f2011
  1. 2
      npm/binary.js

@ -13,7 +13,7 @@ const getPlatform = () => {
if (type === "Linux" && arch === "x64") {
return "x86_64-unknown-linux-musl";
}
if (type === "Darwin" && arch === "x64") {
if (type === "Darwin" && (arch === "x64" || arch === "arm64")) {
return "x86_64-apple-darwin";
}

Loading…
Cancel
Save