From 61ceec58a8154038a47d37f38818e5207897a63c Mon Sep 17 00:00:00 2001 From: shaobeichen Date: Fri, 1 Nov 2024 17:47:07 +0800 Subject: [PATCH] fix: update build scripts --- scripts/build.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/build.js b/scripts/build.js index a5405ac..ded4122 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -14,7 +14,7 @@ const npmPath = path.join(__dirname, '../npm') platforms.forEach((platform) => { const [GOOS, GOARCH] = platform.goPlatform.split('/') - const [realOs, realArch] = platform.goPlatform.split('/') + const [realOs, realArch] = platform.realPlatform.split('/') const childPackageName = `${realOs}-${realArch}` const childPackageDir = path.join(npmPath, childPackageName) @@ -54,14 +54,14 @@ platforms.forEach((platform) => { }, (error, stdout, stderr) => { if (error) { - console.error(`[error]: ${platform} ${error.message}`) + console.error(`[error]: ${platform.realPlatform} ${error.message}`) return } if (stderr) { - console.error(`[stderr]: ${platform} ${stderr}`) + console.error(`[stderr]: ${platform.realPlatform} ${stderr}`) return } - console.log(`[success]: ${platform} ${stdout}`) + console.log(`[success]: ${platform.realPlatform} ${stdout}`) }, ) })