!644 In FA stage, the path of source file use relative path

Merge pull request !644 from 施涛/cherry-pick-1724337363
This commit is contained in:
openharmony_ci 2024-08-24 07:04:12 +00:00 committed by Gitee
commit 2848967f4f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -199,7 +199,7 @@ function writeFileSync(inputString, buildPath, keyPath, jsBundleFile, isToBin) {
const buildJsonInfo = JSON.parse(fs.readFileSync(process.env.aceBuildJson).toString()); const buildJsonInfo = JSON.parse(fs.readFileSync(process.env.aceBuildJson).toString());
sourceFile = toUnixPath(sourceFile.replace(buildJsonInfo.projectRootPath + path.sep, '')); sourceFile = toUnixPath(sourceFile.replace(buildJsonInfo.projectRootPath + path.sep, ''));
} else { } else {
sourceFile = toUnixPath(sourceFile); sourceFile = toUnixPath(sourceFile.replace(process.env.projectRootPath + path.sep, ''));
} }
output = toUnixPath(output); output = toUnixPath(output);
cacheOutputPath = toUnixPath(cacheOutputPath); cacheOutputPath = toUnixPath(cacheOutputPath);