Skip to content

fix: detect Chrome for Testing across platforms#1

Open
centralvii wants to merge 2 commits into
ForgetMeAI:mainfrom
centralvii:main
Open

fix: detect Chrome for Testing across platforms#1
centralvii wants to merge 2 commits into
ForgetMeAI:mainfrom
centralvii:main

Conversation

@centralvii
Copy link
Copy Markdown

@centralvii centralvii commented Jun 7, 2026

Что исправили

  • Убрали падение scripts/deepseek_chrome_auth.js на Windows из-за macOS-only пути /Applications/Google Chrome.app/....

Добавлено

  • Поиск пути к браузеру более гибким и платформо-зависимым:
    • сначала пробуем CHROME_PATH
    • затем puppeteer.executablePath() (если Puppeteer доступен)
    • затем типовые paths в кеше Puppeteer
    • затем OS-default paths:
      • Windows: типовые chrome.exe в Program Files
      • macOS: Google Chrome for Testing.app / Google Chrome.app

Итог

  • На Windows auth-скрипт больше не пытается запускать macOS бинарь, и корректно находит Chrome/Chrome for Testing.

# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
@centralvii centralvii marked this pull request as ready for review June 7, 2026 08:46
@JustDoItMakeYourDreamsComeTrue
Copy link
Copy Markdown

Проверил, пашет.

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