Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 5 additions & 11 deletions src/channel_windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,11 @@ export class WindowsChannelInstaller implements Installer {
throw new Error(`Unexpected version: ${version}`);
}

const root = this.browserRootDir(version);
try {
await fs.promises.stat(root);
} catch (e) {
if (isENOENT(e)) {
return undefined;
}
throw e;
}

return { root, bin: "chrome.exe" };
// Skip checking if the browser is installed by the official installer.
// The official installer installs to the default location and
// some github-hosted runners have outdated versions.
// It enables us to use the latest version of the browser.
return undefined;
}

async downloadBrowser(version: string): Promise<DownloadResult> {
Expand Down
Loading