Skip to content

Add cross-platform support to browser-tools#3

Open
tarrencev wants to merge 1 commit intobadlogic:mainfrom
tarrencev:jakarta
Open

Add cross-platform support to browser-tools#3
tarrencev wants to merge 1 commit intobadlogic:mainfrom
tarrencev:jakarta

Conversation

@tarrencev
Copy link
Copy Markdown

Summary

  • Adds platform detection for Chrome executable and profile paths (macOS, Linux, Windows)
  • Auto-discovers Chrome/Chromium from common installation locations on each platform
  • Supports CHROME_PATH and CHROME_PROFILE_PATH environment variables for custom setups
  • Improves error messages when Chrome or profile is not found

@lsj5031
Copy link
Copy Markdown

lsj5031 commented Jan 4, 2026

Great cross-platform work! One suggestion: Windows profile syncing still won't work since rsync isn't available. Consider using robocopy for Windows:

if (platform() === "win32") {
  execSync(`robocopy "${profilePath}" "${SCRAPING_DIR}" /MIR /XF SingletonLock SingletonSocket SingletonCookie /XD Sessions`, { stdio: "pipe" });
} else {
  // existing rsync code
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants