From 4790b40a553387ed9885056dd75f36630cc72c37 Mon Sep 17 00:00:00 2001 From: mshe <666666666@666666666.666666666> Date: Wed, 27 May 2026 15:48:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(deps):=20=E4=BF=AE=E5=A4=8D=20Playwright=20?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 playwright install 命令限制为仅安装 chromium 浏览器 - 将 playwright install-deps 命令限制为仅安装 chromium 依赖 - 避免安装不必要的浏览器引擎以减少安装时间和磁盘占用 --- pre_install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_install.sh b/pre_install.sh index 9fe2ac1..a814109 100755 --- a/pre_install.sh +++ b/pre_install.sh @@ -2,5 +2,5 @@ apt install -y python3.12-dev python3.12-venv python3 -m venv .venv --system-site-packages source .venv/bin/activate .venv/bin/python3.12 -m pip install -r requirements.txt -.venv/bin/playwright install -.venv/bin/playwright install-deps \ No newline at end of file +.venv/bin/playwright install chromium +.venv/bin/playwright install-deps chromium \ No newline at end of file