mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-12-16 06:21:34 +01:00
Build Windows and Linux binaries. resolves #18
This commit is contained in:
@@ -76,6 +76,12 @@ export default {
|
||||
puppeteerOptions.userDataDir = prepareBrowserProfile(id)
|
||||
}
|
||||
|
||||
// if we are running inside executable binary, change chrome path
|
||||
if (typeof (process as any).pkg !== 'undefined') {
|
||||
const exe = process.platform === "win32" ? 'chrome.exe' : 'chrome';
|
||||
puppeteerOptions.executablePath = path.join(path.dirname(process.execPath), 'chrome', exe)
|
||||
}
|
||||
|
||||
log.debug('Launching headless browser...')
|
||||
|
||||
// TODO: maybe access env variable?
|
||||
|
||||
Reference in New Issue
Block a user