From 08825f20113f8be2fc2fcedddd51dedca9669f97 Mon Sep 17 00:00:00 2001 From: Dominic Elm Date: Tue, 14 Dec 2021 08:56:09 +0100 Subject: [PATCH] fix: add support for arm64 when using npm --- npm/binary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/npm/binary.js b/npm/binary.js index d66bf98..41b33d8 100644 --- a/npm/binary.js +++ b/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"; }