Skip to content

Commit

Permalink
fix: normalise PREBUILD_NAME to node.napi
Browse files Browse the repository at this point in the history
prebuilify will add .node extension to generated binding
  • Loading branch information
YOU54F committed Apr 23, 2024
1 parent 8566c8d commit 3812b0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions script/ci/prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@ fi

PREBUILDIFY_VERSION=6.0.1
NODE_VERSION=$(node -p process.version)
PREBUILD_NAME="node.napi.node"
PREBUILD_NAME="node.napi"

## normalise OS and ARCH names
OS=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCH=$(uname -m | tr '[:upper:]' '[:lower:]')
case $OS in
"windows"* | "mingw64"*)
OS=win32
PREBUILD_NAME="node.napi"
;;
esac
node --version
Expand Down

0 comments on commit 3812b0d

Please sign in to comment.