From 6f803730f0a2e56a86c055d4b47794bcad016c96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E7=91=BE?= Date: Mon, 4 Nov 2024 14:28:00 +0800 Subject: [PATCH] fix: arch --- src/puppeteer/init.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/puppeteer/init.ts b/src/puppeteer/init.ts index a386951..36b0b5a 100644 --- a/src/puppeteer/init.ts +++ b/src/puppeteer/init.ts @@ -170,6 +170,14 @@ export default class InitChrome { { type: '字体', command: 'apt install fonts-wqy-microhei fonts-noto-cjk fonts-adobe-source-han-sans-cn' }, ] + await install(list) + } else if (/arch/i.test(system)) { + // 我也不知道这玩意到底需要什么依赖...反正是chatgpt提供的。 + const list = [ + { type: '依赖', command: 'pacman -S --noconfirm alsa-lib atk cups gtk3 libxcomposite libxrandr libxdamage libxext libxi libxss libxtst pango xorg-fonts-100dpi xorg-fonts-75dpi xorg-fonts-cyrillic xorg-fonts-misc xorg-fonts-type1 nss libxshmfence libcups libu2f-host libgcrypt' }, + { type: '字体', command: 'pacman -S --noconfirm ttf-wqy-microhei noto-fonts-cjk adobe-source-han-sans-cn-fonts' }, + ] + await install(list) } else { console.error(`[Error] 未知系统: ${system} 请自行处理 Chrome 依赖`)