Merge pull request !187 from 卡哥/hash
This commit is contained in:
openharmony_ci
2022-03-16 06:54:14 +00:00
committed by Gitee
+1 -7
View File
@@ -135,13 +135,7 @@ function validateCardModule(moduleJsonConfig) {
}
function hashProjectPath(projectPath) {
const ASSCIIStart = 65;
const ASSCIIEnd = 90;
const deviation = 1;
process.env.hashProjectPath =
String.fromCharCode(Math.floor(Math.random() * (ASSCIIEnd - ASSCIIStart + deviation) + ASSCIIStart)) +
md5(projectPath).substring(9, 16) +
String.fromCharCode(Math.floor(Math.random() * (ASSCIIEnd - ASSCIIStart + deviation) + ASSCIIStart));
process.env.hashProjectPath = "_" + md5(projectPath);
}
module.exports = {