| 16 | } from '../dist/tools/pdf/markdown.js'; |
| 17 | |
| 18 | function 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 | |
| 38 | async function createChromeBuild(chromeDir, buildDirName) { |
| 39 | const executablePath = executablePathForBuild(chromeDir, buildDirName); |