Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

fix: correctly detect apple darwin architectures #21

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion scripts/build/build_mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/

Expand Down