Uphrade plawyright installation command to install dependencies

This commit is contained in:
UncleCode
2025-01-01 15:23:16 +08:00
parent 1acc162c18
commit 704bd66b63

View File

@@ -17,7 +17,7 @@ def post_install():
def install_playwright():
logger.info("Installing Playwright browsers...", tag="INIT")
try:
subprocess.check_call([sys.executable, "-m", "playwright", "install"])
subprocess.check_call([sys.executable, "-m", "playwright", "install", "--with-deps"])
logger.success("Playwright installation completed successfully.", tag="COMPLETE")
except subprocess.CalledProcessError as e:
logger.error(f"Error during Playwright installation: {e}", tag="ERROR")