Skip to content

Commit 39ff036

Browse files
dqnamoclaude
andcommitted
Use system Chrome instead of bundled Chromium
- Add channel="chrome" to use user's installed Chrome - Remove Playwright browser download step from CI - Simplify PyInstaller build (no browser bundling needed) This fixes the "Executable doesn't exist" error when running the distributed binary, since bundled Chromium wasn't included. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent f09d31e commit 39ff036

2 files changed

Lines changed: 2 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,12 @@ jobs:
4747
pip install -r requirements.txt
4848
pip install pyinstaller
4949
50-
- name: Install Playwright browsers
51-
run: playwright install chromium
52-
5350
- name: Build binary
5451
run: |
55-
# Get the Playwright driver path
56-
PLAYWRIGHT_BROWSERS_PATH=$(python -c "import playwright; print(playwright.__file__.replace('__init__.py', 'driver'))")
57-
58-
echo "Playwright path: $PLAYWRIGHT_BROWSERS_PATH"
59-
60-
# Build with PyInstaller
52+
# Build with PyInstaller - uses system Chrome at runtime (channel="chrome")
6153
pyinstaller \
6254
--onefile \
6355
--name hyperaide-sync-${{ matrix.platform }}-${{ matrix.arch }} \
64-
--add-data "${PLAYWRIGHT_BROWSERS_PATH}:playwright/driver" \
6556
--hidden-import playwright \
6657
--hidden-import playwright.sync_api \
6758
--collect-all playwright \

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ def run_browser_session() -> tuple[list[dict], list[str]]:
236236
# Launch browser with persistent context for cookie storage
237237
browser = p.chromium.launch(
238238
headless=False,
239+
channel="chrome", # Use system Chrome instead of bundled Chromium
239240
args=[
240241
"--disable-blink-features=AutomationControlled",
241242
"--no-first-run",

0 commit comments

Comments
 (0)