Skip to content

Commit

Permalink
fix: pass the node version to prebuildify + fix windows x86/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Nov 16, 2022
1 parent a1353ea commit e30b162
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script/prebuild.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ async function main() {
process.env.ZMQ_BUILD_OPTIONS = `--host=${TRIPLE}`
}

let prebuildScript = `prebuildify --napi --arch=${prebuildArch} --strip --tag-libc`
// use the current node version to build the prebuild
// If the distribution for that particular architecture is not available, updated your Node:
// https://nodejs.org/dist/
const nodeVersion = process.version.replace("v", "")

let prebuildScript = `prebuildify --napi --arch=${prebuildArch} --strip --tag-libc -t ${nodeVersion}`

if (typeof process.env.ALPINE_CHROOT === "string") {
prebuildScript = `/alpine/enter-chroot ${prebuildScript}`
Expand Down

0 comments on commit e30b162

Please sign in to comment.