douyinWEB/desktop/README.md
Eric 960a268fa2 Make desktop the sole Windows client with unmanned live and boot/poll hardening.
Consolidate Douyin→YouTube RTMPS into /live, parallel local service boot, poll-only realtime, slimmer packs/charts, and deprecate youtube-live-win.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-23 14:10:07 +01:00

58 lines
1.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Windows 桌面客户端(唯一)
本目录是 **douyinWEB 唯一 Windows 客户端**:本地拉起 PocketBase + FastAPI + youtube-svc,UI 为 Electron + React。
> 已废弃独立目录 `youtube-live-win/`。无人直播请用本客户端导航 **「无人直播」**。
## 要求
- Windows 10/11 x64
- Node.js 20+
- Python 3.10+(Windows 需 `tzdata`:`npm run ensure-python` 或 `pip install -r ../backend/requirements.txt`)
- PocketBase:`npm run fetch-pocketbase` → `../pb/pocketbase.exe`
- FFmpeg:系统 PATH,或 `npm run fetch-ffmpeg` → `runtime/ffmpeg/`
- `youtube-svc`:`cd ../youtube-svc && npm install`(`start-desktop.bat` 会自动装)
## 开发
```bat
cd desktop
npm install
npm run prepare:runtime
npm run electron:dev
```
或仓库根目录:`scripts\start-desktop.bat`(自动补齐 PB / ffmpeg / Python / youtube-svc)。
| 服务 | 默认 |
|------|------|
| FastAPI | `127.0.0.1:8014` |
| PocketBase | `127.0.0.1:8090` |
| youtube-svc | `127.0.0.1:8020` |
| Vite UI | `127.0.0.1:5173` |
启动时 **关闭 `DY_DESKTOP_LIGHT`**,会自动拉起 monitor / youtube_relay / Shorts 等 worker(Neko 默认关,无需 Docker)。
桌面端默认 **轮询模式**(不开 SSE),避免 Windows 本机 API 被 EventSource 打满。
## 功能
- 概览 / 时段 / 场次 / 主播 / 截图 / 事件
- 直播间 / 分组 / YouTube 管理与探测 / Shorts / 黑名单 / 设置
- **无人直播**:单频道 Stream Key + 抖音源 → 一键武装 RTMPS 推流
## 打包
```bat
npm run fetch-ffmpeg
npm run pack
```
产物在 `desktop/release/`(NSIS + portable)。
## 无人直播用法
1. YouTube Studio → 开始直播(进入收流)
2. 客户端打开 **无人直播**
3. 填 Stream Key + 抖音直播间 → 保存 → **一键武装推流**