MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / downloadedChromeBinaryPath

Function downloadedChromeBinaryPath

scripts/devtools_paths.js:169–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

167}
168
169export function downloadedChromeBinaryPath() {
170 const arch = os.arch() === 'arm64' ? 'arm64' : 'x64';
171 const paths = {
172 linux: path.join('chrome-linux', 'chrome-linux64', 'chrome'),
173 darwin: path.join(
174 `chrome-mac-${arch}`,
175 `chrome-mac-${arch}`,
176 'Google Chrome for Testing.app',
177 'Contents',
178 'MacOS',
179 'Google Chrome for Testing',
180 ),
181 win32: path.join('chrome-win', 'chrome-win64', 'chrome.exe'),
182 };
183 return path.join(devToolsThirdPartyPath(), 'chrome', paths[os.platform()]);
184}

Callers 1

findBrowserBinaryFunction · 0.90

Calls 3

devToolsThirdPartyPathFunction · 0.85
platformMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected