@echo off setlocal EnableExtensions set "PATH=%SystemRoot%\System32;%PATH%" cd /d "%~dp0" if not exist ".venv\Scripts\python.exe" ( echo Run setup.bat first. pause exit /b 1 ) set "PY=.venv\Scripts\python.exe" set "PLAYWRIGHT_BROWSERS_PATH=%~dp0playwright-browsers" if not exist "%PLAYWRIGHT_BROWSERS_PATH%" mkdir "%PLAYWRIGHT_BROWSERS_PATH%" echo Reinstalling Chromium... "%PY%" -m playwright install chromium "%PY%" -c "from douyin_collector_bootstrap import resolve_chrome_exe; print('OK:', resolve_chrome_exe())" pause endlocal