c9b7806418
* chore: bump chromium in DEPS to 129.0.6645.0 * chore: update patches * chore: bump chromium in DEPS to 129.0.6646.0 * refactor: remove ppapi dependency PPAPI removal - https://issues.chromium.org/issues/40511450 PDF viewer migration - https://issues.chromium.org/issues/40511452 * chore: update patches * chore: enable `content_enable_legacy_ipc` We were indirectly relying on this via `enable_ppapi=true`, with 633a57d9b62da7850ef7946f6b101ed440d04cdd ppapi is now disabled and this commit makes the dependency explicit. * fix: gn check --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: deepak1556 <hop2deep@gmail.com>
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
/*
|
|
Usage:
|
|
|
|
$ node ./script/gn-check.js [--outDir=dirName]
|
|
*/
|
|
|
|
const cp = require('node:child_process');
|
|
const path = require('node:path');
|
|
const args = require('minimist')(process.argv.slice(2), { string: ['outDir'] });
|
|
|
|
const { getOutDir } = require('./lib/utils');
|
|
|
|
const SOURCE_ROOT = path.normalize(path.dirname(__dirname));
|
|
const DEPOT_TOOLS = path.resolve(SOURCE_ROOT, '..', 'third_party', 'depot_tools');
|
|
|
|
const OUT_DIR = getOutDir({ outDir: args.outDir });
|
|
if (!OUT_DIR) {
|
|
throw new Error('No viable out dir: one of Debug, Testing, or Release must exist.');
|
|
}
|
|
|
|
const env = {
|
|
CHROMIUM_BUILDTOOLS_PATH: path.resolve(SOURCE_ROOT, '..', 'buildtools'),
|
|
DEPOT_TOOLS_WIN_TOOLCHAIN: '0',
|
|
...process.env
|
|
};
|
|
// Users may not have depot_tools in PATH.
|
|
env.PATH = `${env.PATH}${path.delimiter}${DEPOT_TOOLS}`;
|
|
|
|
const gnCheckDirs = [
|
|
'//electron:electron_lib',
|
|
'//electron:electron_app',
|
|
'//electron/shell/common:mojo',
|
|
'//electron/shell/common:plugin'
|
|
];
|
|
|
|
for (const dir of gnCheckDirs) {
|
|
const args = ['check', `../out/${OUT_DIR}`, dir];
|
|
const result = cp.spawnSync('gn', args, { env, stdio: 'inherit' });
|
|
if (result.status !== 0) process.exit(result.status);
|
|
}
|
|
|
|
process.exit(0);
|