Generate ADMX/ADML policy declaration files from static analysis

Fixes: #148941
This commit is contained in:
João Moreno
2022-05-10 13:17:05 +02:00
committed by GitHub
parent 934e378165
commit dcfe6b3b84
19 changed files with 1648 additions and 512 deletions

View File

@@ -47,9 +47,9 @@ for (let dir of dirs) {
continue;
}
if (dir === 'build/lib/watch') {
if (dir === 'build') {
// node modules for watching, specific to host node version, not electron
yarnInstallBuildDependencies();
yarnInstallBuildDependencies(dir);
continue;
}
@@ -73,11 +73,10 @@ for (let dir of dirs) {
yarnInstall(dir, opts);
}
function yarnInstallBuildDependencies() {
// make sure we install the deps of build/lib/watch for the system installed
function yarnInstallBuildDependencies(dir) {
// make sure we install the deps of build for the system installed
// node, since that is the driver of gulp
const watchPath = path.join(path.dirname(__dirname), 'lib', 'watch');
const yarnrcPath = path.join(watchPath, '.yarnrc');
const yarnrcPath = path.join(dir, '.yarnrc');
const disturl = 'https://nodejs.org/download/release';
const target = process.versions.node;
@@ -88,7 +87,7 @@ target "${target}"
runtime "${runtime}"`;
fs.writeFileSync(yarnrcPath, yarnrc, 'utf8');
yarnInstall(watchPath);
yarnInstall(dir);
}
cp.execSync('git config pull.rebase merges');