Skip to content

Commit

Permalink
fix: arch
Browse files Browse the repository at this point in the history
  • Loading branch information
sj817 committed Nov 4, 2024
1 parent 753733e commit 6f80373
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/puppeteer/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 依赖`)
Expand Down

0 comments on commit 6f80373

Please sign in to comment.