From e30b162286efaa56de239fc9454e9d7a5071d562 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Wed, 16 Nov 2022 12:39:28 -0800 Subject: [PATCH] fix: pass the node version to prebuildify + fix windows x86/arm64 --- script/prebuild.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/script/prebuild.ts b/script/prebuild.ts index 82116e85..9ddc3cff 100644 --- a/script/prebuild.ts +++ b/script/prebuild.ts @@ -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}`