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/