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
|
```bash
|
||||||
# 1. 安装 NPM 依赖
|
# 1. 安装 NPM 依赖
|
||||||
pnpm install
|
pnpm install
|
||||||
|
|
||||||
# 2. 安装浏览器等预编译依赖
|
# 2. 安装浏览器等预编译依赖
|
||||||
# ⚠️ 该脚本需连接 GitHub 下载资源。若网络受限,请使用代理
|
# ⚠️ 该脚本需连接 GitHub 下载资源。若网络受限,请使用代理
|
||||||
npm run init
|
npm run init
|
||||||
# 使用代理
|
# 使用代理
|
||||||
# 直接使用 -proxy 可交互式输入代理配置
|
# 直接使用 -proxy 可交互式输入代理配置
|
||||||
npm run init -- -proxy=http://username:passwd@host:port
|
npm run init -- -proxy=http://username:passwd@host:port
|
||||||
|
|
||||||
|
# 3. Linux 依赖安装
|
||||||
|
# 其他发行版请前往文档中心查找或者自行搜索
|
||||||
|
apt install -y xvfb x11vnc libgtk-3-0 libx11-xcb1 libasound2
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **启动服务**
|
2. **启动服务**
|
||||||
|
|||||||
@@ -76,12 +76,18 @@ This project supports both **source code execution** and **Docker containerized
|
|||||||
```bash
|
```bash
|
||||||
# 1. Install NPM dependencies
|
# 1. Install NPM dependencies
|
||||||
pnpm install
|
pnpm install
|
||||||
|
|
||||||
# 2. Install precompiled dependencies like the browser
|
# 2. Install precompiled dependencies like the browser
|
||||||
# ⚠️ This script requires connecting to GitHub to download resources. Use a proxy if network access is limited.
|
# ⚠️ This script requires connecting to GitHub to download resources. Use a proxy if network access is limited.
|
||||||
npm run init
|
npm run init
|
||||||
# Using a proxy
|
# Using a proxy
|
||||||
# Use -proxy to interactively input proxy configuration
|
# Use -proxy to interactively input proxy configuration
|
||||||
npm run init -- -proxy=http://username:passwd@host:port
|
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**
|
2. **Start Service**
|
||||||
|
|||||||
Reference in New Issue
Block a user