()
| 32 | } |
| 33 | |
| 34 | export const findChromeExecutable = (): string | null => { |
| 35 | const paths = CHROME_PATHS[platform] ?? [] |
| 36 | for (const p of paths) { |
| 37 | if (p && fs.existsSync(p)) return p |
| 38 | } |
| 39 | return null |
| 40 | } |
| 41 | |
| 42 | export const getSystemInfo = (processEnv: ProcessEnv = getProcessEnv()) => { |
| 43 |