mirror of
https://github.com/smallmain/cocos-enhance-kit.git
synced 2024-12-24 10:48:27 +00:00
优化自动发布脚本的兼容性
This commit is contained in:
parent
2203fe0199
commit
d492241e78
@ -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: `自动编译当前平台的原生模拟器失败,请手动编译后继续`,
|
||||||
|
Loading…
Reference in New Issue
Block a user