From aba6e37befefa35c1b1b2ce2db8f5a3fcd7cfd81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=A0=E6=AA=AC=E5=86=B2=E6=B0=B4?= <10424920+ningmengchongshui@user.noreply.gitee.com> Date: Mon, 4 Sep 2023 04:38:31 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=A0=E6=89=A7=E8=A1=8C=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=AF=BC=E8=87=B4=E7=9A=84=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E5=8D=A0=E7=94=A8=E7=99=BB=E5=BD=95=EF=BC=8C=E5=85=88=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E6=89=93=E5=8D=B0=E3=80=82=20=E5=BB=BA=E8=AE=AE?= =?UTF-8?q?=E5=85=88=E5=88=A4=E6=96=AD=E6=B5=8F=E8=A7=88=E5=99=A8=E5=86=8D?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E7=99=BB=E5=BD=95=EF=BC=8C=E6=AF=95=E7=AB=9F?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=B5=8F=E8=A7=88=E5=99=A8=E5=B0=B1=E5=B9=B2?= =?UTF-8?q?=E6=8E=89=E4=BA=86=E7=BB=9D=E5=A4=A7=E6=95=B0=E5=A4=9A=E5=B0=91?= =?UTF-8?q?=E6=8F=92=E4=BB=B6=E4=BA=86=EF=BC=8C=E6=9C=BA=E5=99=A8=E4=BA=BA?= =?UTF-8?q?=E4=B9=9F=E5=B0=B1=E6=B2=A1=E6=9C=89=E5=90=AF=E5=8A=A8=E7=9A=84?= =?UTF-8?q?=E6=84=8F=E4=B9=89=E3=80=82=E7=9F=A5=E9=81=93pup=E6=89=93?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E4=BF=A1=E6=81=AF=E8=BF=98=E6=98=AF=E5=BE=88?= =?UTF-8?q?=E6=9C=89=E5=BF=85=E8=A6=81=E7=9A=84=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 柠檬冲水 <10424920+ningmengchongshui@user.noreply.gitee.com> --- .puppeteerrc.cjs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.puppeteerrc.cjs b/.puppeteerrc.cjs index 74936b0..12ece1a 100644 --- a/.puppeteerrc.cjs +++ b/.puppeteerrc.cjs @@ -35,11 +35,9 @@ if (process.platform == "linux" || process.platform == "android") { if (chromiumPath) { skipDownload = true; executablePath = realpathSync(chromiumPath); - console.info("[Chromium] start"); break; } - } catch (error) { - console.error("Failed to get Chromium path:", error); + } catch { continue; } } @@ -59,7 +57,6 @@ if (process.platform == "linux" || process.platform == "android") { if (existsSync(item)) { skipDownload = true; executablePath = item; - console.info("[Chromium] start"); break; } } @@ -68,7 +65,6 @@ if (process.platform == "linux" || process.platform == "android") { * arm64/arrch64 */ if (arch == "arm64" || arch == "aarch64") { - console.info("[arm64/aarch64] system"); skipDownload = true; } } else if (process.platform == "win32" && existsSync(win32Edge)) { @@ -77,7 +73,6 @@ if (process.platform == "linux" || process.platform == "android") { */ skipDownload = true; executablePath = win32Edge; - console.info("[Win32 Edge] start"); } /** * @type {import("puppeteer").Configuration}