From 86be3b660bfb00c06e5a8f2ccde791917e916384 Mon Sep 17 00:00:00 2001 From: RetricSu Date: Tue, 30 Dec 2025 14:45:55 +0800 Subject: [PATCH] fix: portable ckb is not available on windows --- src/node/install.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/node/install.ts b/src/node/install.ts index dbb8136..54c12ed 100644 --- a/src/node/install.ts +++ b/src/node/install.ts @@ -178,7 +178,8 @@ function buildCKBGithubReleasePackageName(version: string, opt: { os?: string; a const os = opt.os || getOS(); const arch = opt.arch || getArch(); - if (isPortable()) { + if (isPortable() && os !== 'pc-windows-msvc') { + // portable binary is not available for windows return `ckb_v${version}_${arch}-${os}-portable`; } else { return `ckb_v${version}_${arch}-${os}`; @@ -193,7 +194,8 @@ function buildCKBGithubReleasePackageNameWithExtension( const arch = opt.arch || getArch(); const extension = opt.ext || getExtension(); - if (isPortable()) { + if (isPortable() && os !== 'pc-windows-msvc') { + // portable binary is not available for windows return `ckb_v${version}_${arch}-${os}-portable.${extension}`; } else { return `ckb_v${version}_${arch}-${os}.${extension}`;