Merge branch 'feat/add-github-actions-release'

This commit is contained in:
zy
2025-09-17 21:57:55 +08:00
2 changed files with 228 additions and 3 deletions

View File

@@ -138,10 +138,41 @@ https://github.com/user-attachments/assets/cc385b6c-422c-489b-a5fc-63e92c695b80
## 1. 使用教程
### 1.1. 安装
### 1.1. 快速开始(推荐)
**方式一:下载预编译二进制文件**
直接从 [GitHub Releases](https://github.com/xpzouying/xiaohongshu-mcp/releases) 下载对应平台的二进制文件:
**主程序MCP 服务):**
- **macOS Apple Silicon**: `xiaohongshu-mcp-darwin-arm64`
- **macOS Intel**: `xiaohongshu-mcp-darwin-amd64`
- **Windows x64**: `xiaohongshu-mcp-windows-amd64.exe`
- **Linux x64**: `xiaohongshu-mcp-linux-amd64`
**登录工具:**
- **macOS Apple Silicon**: `xiaohongshu-login-darwin-arm64`
- **macOS Intel**: `xiaohongshu-login-darwin-amd64`
- **Windows x64**: `xiaohongshu-login-windows-amd64.exe`
- **Linux x64**: `xiaohongshu-login-linux-amd64`
使用步骤:
```bash
# 1. 首先运行登录工具
chmod +x xiaohongshu-login-darwin-arm64
./xiaohongshu-login-darwin-arm64
# 2. 然后启动 MCP 服务
chmod +x xiaohongshu-mcp-darwin-arm64
./xiaohongshu-mcp-darwin-arm64
```
**⚠️ 重要提示**:首次运行时会自动下载无头浏览器(约 150MB请确保网络连接正常。后续运行无需重复下载。
**方式二:源码编译**
<details>
<summary>安装配置详情</summary>
<summary>源码编译安装详情</summary>
依赖 Golang 环境,安装方法请参考 [Golang 官方文档](https://go.dev/doc/install)。
@@ -168,8 +199,13 @@ Windows 遇到问题首先看这里:[Windows 安装指南](./docs/windows_guid
第一次需要手动登录,需要保存小红书的登录状态。
运行
**使用二进制文件**
```bash
# 运行对应平台的登录工具
./xiaohongshu-login-darwin-arm64
```
**使用源码**
```bash
go run cmd/login/main.go
```
@@ -178,8 +214,17 @@ go run cmd/login/main.go
启动 xiaohongshu-mcp 服务。
**使用二进制文件**
```bash
# 默认:无头模式,没有浏览器界面
./xiaohongshu-mcp-darwin-arm64
# 非无头模式,有浏览器界面
./xiaohongshu-mcp-darwin-arm64 -headless=false
```
**使用源码**
```bash
# 默认:无头模式,没有浏览器界面
go run .