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

Issue: IAJIM8

Signed-off-by: shitao <shitao40@huawei.com>
Change-Id: Icce9ea20da65011c753c30d30da660c6e04806f1
This commit is contained in:
shitao 2024-08-14 14:47:06 +08:00
parent 790aeb478a
commit 2d39c63067

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);