Fix bugs of gen abc

1.Fix gen abc failed, but previewer executes success
2.Fix fail to excute manage worker script with special path

Signed-off-by: zhangrengao <zhangrengao1@huawei.com>
Change-Id: Icb9f774d712f583b63bd4edc4d9d63db2fe64309
This commit is contained in:
zhangrengao 2023-02-07 14:50:41 +08:00
parent da0f990e3e
commit 6da6e03157
2 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ const writeError = (buildPath, content) => {
function printResult(buildPath) {
printWarning();
printError(buildPath);
if (errorCount + warningCount + noteCount > 0) {
if (errorCount + warningCount + noteCount > 0 || process.env.abcCompileSuccess === 'false') {
let result;
const resultInfo = {};
if (errorCount > 0) {

View File

@ -685,7 +685,7 @@ function processWorkersOfPreviewMode(splittedData, cmdPrefix, workerNumber) {
};
processEnv.arkEnvParams = JSON.stringify(arkEnvParams);
let genAbcCmd = `${nodeJs} ${path.resolve(__dirname, manageBunldeWorkersScript)}`;
let genAbcCmd = `${nodeJs} "${path.resolve(__dirname, manageBunldeWorkersScript)}"`;
childProcess.execSync(genAbcCmd, {env: processEnv});
processExtraAssetForBundle();
}