chore: fix roll_browser script (#7626)

This commit is contained in:
Dmitry Gozman 2021-07-14 18:39:39 -07:00 committed by GitHub
parent bb34d7a953
commit 7b795c9bc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -73,12 +73,12 @@ Example:
if (descriptor.installByDefault) {
// 3. Download new browser.
console.log('\nDownloading new browser...');
const { installDefaultBrowsersForNpmInstall } = require('../lib/utils/registry');
await installDefaultBrowsersForNpmInstall();
const registry = new Registry(ROOT_PATH);
await registry.install();
// 4. Generate types.
console.log('\nGenerating protocol types...');
const executablePath = new Registry(ROOT_PATH).findBinary(binaryName).executablePathOrDie();
const executablePath = registry.findExecutable(browserName).executablePathOrDie();
await protocolGenerator.generateProtocol(browserName, executablePath).catch(console.warn);
// 5. Update docs.