From d492241e783f0405697f7395c24a0a3ee39501b0 Mon Sep 17 00:00:00 2001 From: SmallMain Date: Thu, 14 Nov 2024 21:33:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=87=AA=E5=8A=A8=E5=8F=91?= =?UTF-8?q?=E5=B8=83=E8=84=9A=E6=9C=AC=E7=9A=84=E5=85=BC=E5=AE=B9=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/index.js b/scripts/index.js index fff5242f..045bd583 100644 --- a/scripts/index.js +++ b/scripts/index.js @@ -186,7 +186,7 @@ const zipPath = join(masterTempPath, `cocos-enhance-kit-v${kitVersion}-v${engine if (!DRYRUN) { console.log("开始编译 JavaScript 引擎"); try { - await $$({ cwd: jsPath })`gulp build-dev`; + await $$({ cwd: jsPath })`npx gulp build-dev`; } catch (error) { await confirm({ message: `自动编译 JavaScript 引擎失败,请手动编译后继续`, @@ -198,8 +198,8 @@ console.log("已编译 JavaScript 引擎"); if (!DRYRUN && COMPILING_SIMULATOR) { console.log("开始编译当前平台的原生模拟器"); try { - await $$({ cwd: cppPath })`gulp gen-simulator`; - await $$({ cwd: cppPath })`gulp update-simulator-config`; + await $$({ cwd: cppPath })`npx gulp gen-simulator`; + await $$({ cwd: cppPath })`npx gulp update-simulator-config`; } catch (error) { await confirm({ message: `自动编译当前平台的原生模拟器失败,请手动编译后继续`,