MCPcopy Create free account
hub / github.com/wonderwhy-er/DesktopCommanderMCP / executablePathForBuild

Function executablePathForBuild

test/test-pdf-chrome-cache.js:18–36  ·  view source on GitHub ↗
(chromeDir, buildDirName)

Source from the content-addressed store, hash-verified

16} from '../dist/tools/pdf/markdown.js';
17
18function executablePathForBuild(chromeDir, buildDirName) {
19 if (process.platform === 'win32') {
20 return path.join(chromeDir, buildDirName, 'chrome-win64', 'chrome.exe');
21 }
22
23 if (process.platform === 'darwin') {
24 return path.join(
25 chromeDir,
26 buildDirName,
27 'chrome-mac-arm64',
28 'Google Chrome for Testing.app',
29 'Contents',
30 'MacOS',
31 'Google Chrome for Testing',
32 );
33 }
34
35 return path.join(chromeDir, buildDirName, 'chrome-linux64', 'chrome');
36}
37
38async function createChromeBuild(chromeDir, buildDirName) {
39 const executablePath = executablePathForBuild(chromeDir, buildDirName);

Callers 1

createChromeBuildFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected