!633 FA模型下,abc中使用源码的相对路径

Merge pull request !633 from 施涛/fa_abc_relative_path
This commit is contained in:
openharmony_ci 2024-08-21 13:00:39 +00:00 committed by Gitee
commit 6a23e08b91
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);