refactor(install): use chromium as default browser

- Remove Chrome installation to reduce setup time
- Keep Chromium as default browser for better cross-platform compatibility
This commit is contained in:
UncleCode
2025-01-01 17:19:54 +08:00
parent 4a4f613238
commit d36ef3d424

View File

@@ -16,7 +16,7 @@ def post_install():
def install_playwright():
logger.info("Installing Playwright browsers...", tag="INIT")
try:
subprocess.check_call([sys.executable, "-m", "playwright", "install", "--with-deps", "--force", "chrome"])
# subprocess.check_call([sys.executable, "-m", "playwright", "install", "--with-deps", "--force", "chrome"])
subprocess.check_call([sys.executable, "-m", "playwright", "install", "--with-deps", "--force", "chromium"])
logger.success("Playwright installation completed successfully.", tag="COMPLETE")
except subprocess.CalledProcessError as e: