[Screenshotting] minor improvement to chromium version-check script (#155806)

Adds a minor improvement to the script for checking the version of
Chromium. The change shows the download path for each type of OS for
which we can use the stock build for the screenshotting feature.

Forward-ported from this fix in 8.7:
https://github.com/elastic/kibana/pull/155313
This commit is contained in:
Tim Sullivan 2023-04-26 13:25:29 -07:00 committed by GitHub
parent 90bee2103d
commit 6a6be92545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -103,7 +103,12 @@ async function getChromiumCommit(
throw new Error(`Could not find a Chromium commit! Check ${url} in a browser.`);
}
const baseUrl = 'https://commondatastorage.googleapis.com/chromium-browser-snapshots';
log.info(`Found Chromium commit ${commit} from revision ${revision}.`);
log.info(`Mac x64 download: ${baseUrl}/Mac/${revision}/chrome-mac.zip`);
log.info(`Mac ARM download: ${baseUrl}/Mac_Arm/${revision}/chrome-mac.zip`);
log.info(`Windows x64 download: ${baseUrl}/Win/${revision}/chrome-win.zip`);
return commit;
}