From fd3dbcfe553ffd673406da44c6bfb2c8b63c7ca3 Mon Sep 17 00:00:00 2001 From: mayoreee Date: Thu, 10 Mar 2022 00:38:24 +0100 Subject: [PATCH] fix: correctly detect apple darwin architectures --- scripts/build/build_mac.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/build/build_mac.sh b/scripts/build/build_mac.sh index bbe9705..c004ae1 100755 --- a/scripts/build/build_mac.sh +++ b/scripts/build/build_mac.sh @@ -18,7 +18,11 @@ npm i -g neon-cli neon build --release NODE_ABI=$(node -e "console.log(process.config.variables.node_module_version)") -NODE_ARCH=$(node -e "console.log(os.arch())") +NODE_ARCH=$(uname -m) + +if [ "${NODE_ARCH}" != "arm64" ]; then + NODE_ARCH="x64" +fi mkdir -p ./prebuilds/darwin-$NODE_ARCH/