mirror of
https://github.com/foxhui/WebAI2API.git
synced 2026-06-16 21:03:59 +08:00
docs: 完善文档
This commit is contained in:
@@ -73,12 +73,18 @@
|
||||
```bash
|
||||
# 1. 安装 NPM 依赖
|
||||
pnpm install
|
||||
|
||||
# 2. 安装浏览器等预编译依赖
|
||||
# ⚠️ 该脚本需连接 GitHub 下载资源。若网络受限,请使用代理
|
||||
npm run init
|
||||
# 使用代理
|
||||
# 直接使用 -proxy 可交互式输入代理配置
|
||||
npm run init -- -proxy=http://username:passwd@host:port
|
||||
|
||||
# 3. Linux 依赖安装
|
||||
# 其他发行版请前往文档中心查找或者自行搜索
|
||||
apt install -y xvfb x11vnc libgtk-3-0 libx11-xcb1 libasound2
|
||||
|
||||
```
|
||||
|
||||
2. **启动服务**
|
||||
|
||||
@@ -76,12 +76,18 @@ This project supports both **source code execution** and **Docker containerized
|
||||
```bash
|
||||
# 1. Install NPM dependencies
|
||||
pnpm install
|
||||
|
||||
# 2. Install precompiled dependencies like the browser
|
||||
# ⚠️ This script requires connecting to GitHub to download resources. Use a proxy if network access is limited.
|
||||
npm run init
|
||||
# Using a proxy
|
||||
# Use -proxy to interactively input proxy configuration
|
||||
npm run init -- -proxy=http://username:passwd@host:port
|
||||
|
||||
# 3. Linux Dependencies
|
||||
# For other distributions, please check the documentation center or search online.
|
||||
apt install -y xvfb x11vnc libgtk-3-0 libx11-xcb1 libasound2
|
||||
|
||||
```
|
||||
|
||||
2. **Start Service**
|
||||
|
||||
Reference in New Issue
Block a user