优化自动发布脚本的兼容性

This commit is contained in:
SmallMain 2024-11-14 21:33:17 +08:00
parent 2203fe0199
commit d492241e78
No known key found for this signature in database

View File

@ -186,7 +186,7 @@ const zipPath = join(masterTempPath, `cocos-enhance-kit-v${kitVersion}-v${engine
if (!DRYRUN) { if (!DRYRUN) {
console.log("开始编译 JavaScript 引擎"); console.log("开始编译 JavaScript 引擎");
try { try {
await $$({ cwd: jsPath })`gulp build-dev`; await $$({ cwd: jsPath })`npx gulp build-dev`;
} catch (error) { } catch (error) {
await confirm({ await confirm({
message: `自动编译 JavaScript 引擎失败,请手动编译后继续`, message: `自动编译 JavaScript 引擎失败,请手动编译后继续`,
@ -198,8 +198,8 @@ console.log("已编译 JavaScript 引擎");
if (!DRYRUN && COMPILING_SIMULATOR) { if (!DRYRUN && COMPILING_SIMULATOR) {
console.log("开始编译当前平台的原生模拟器"); console.log("开始编译当前平台的原生模拟器");
try { try {
await $$({ cwd: cppPath })`gulp gen-simulator`; await $$({ cwd: cppPath })`npx gulp gen-simulator`;
await $$({ cwd: cppPath })`gulp update-simulator-config`; await $$({ cwd: cppPath })`npx gulp update-simulator-config`;
} catch (error) { } catch (error) {
await confirm({ await confirm({
message: `自动编译当前平台的原生模拟器失败,请手动编译后继续`, message: `自动编译当前平台的原生模拟器失败,请手动编译后继续`,