mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00

Upstream Chromium changed the way they configure browser bundles; this patch moves us from relying upon `FILES.cfg` onto `//infra/archive_config/*` configs. Fixes #9936
14 lines
657 B
JavaScript
14 lines
657 B
JavaScript
// This script is supposed to be run with a path to either of the following configs from chromium checkout:
|
|
// - infra/archive_config/mac-archive-rel.json
|
|
// - infra/archive_config/linux-archive-rel.json
|
|
// - infra/archive_config/win-archive-rel.json
|
|
|
|
const fs = require('fs');
|
|
|
|
const configs = JSON.parse(fs.readFileSync(process.argv[2], 'utf8')).archive_datas;
|
|
const config = configs.find(config => config.gcs_path.includes('chrome-linux.zip') || config.gcs_path.includes('chrome-win.zip') || config.gcs_path.includes('chrome-mac.zip'));
|
|
for (const file of config.files || [])
|
|
console.log(file);
|
|
for (const dir of config.dirs || [])
|
|
console.log(dir);
|