From 405bfdd6d56aff1e86397f94921b86ed90b8323a Mon Sep 17 00:00:00 2001 From: modusensus Date: Fri, 13 Nov 2026 00:34:14 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=AE=89=E8=A3=85=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E5=8A=A0=E4=B8=8A=20dsh=20plugin=20=E4=B8=80=E6=9D=A1=EF=BC=8C?= =?UTF-8?q?=E7=BB=99=E6=8F=92=E4=BB=B6=E5=B8=82=E5=9C=BA=E6=8A=95=E7=A8=BF?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dsh-plugin.org 的提交模板要求填一条「实际跑通过的安装命令」, 仓库里原来只有 npm install + 手改 bundles 两步。补一条一行命令装完的 路径,放在最前面作为推荐方式,原来的 npm 手装与源码安装顺延为方式二、 方式三,内容不变。 顺带把开头那句「需要已装好 dsh-onebot-qq」改成可选——生活关怀层不依赖 QQ 通道,只想要健康记录/常用坐标/高德瑞幸的人不用装它。 --- README.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9f1f6a2..5aefc61 100644 --- a/README.md +++ b/README.md @@ -47,9 +47,17 @@ ## 安装(Windows + DSH 桌面版) -> 需要已装好 [dsh-onebot-qq](https://github.com/NapNeko/dsh-onebot-qq)、Node.js ≥ 20,并有一条能用的 QQ 通道。 +> 需要 Node.js ≥ 20。QQ 伴生层是**可选**的——只想要生活关怀层(健康、周期、常用坐标、高德/瑞幸)的话不用装 [dsh-onebot-qq](https://github.com/NapNeko/dsh-onebot-qq)。 -### 方式一:npm(推荐) +### 方式一:dsh plugin(推荐) + +```powershell +dsh plugin --profile web add dsh-cura +``` + +`--profile` 换成你实际在用的 profile(默认 `web`)。这条命令会在 profile 目录里装包并把插件登记进 bundles,装完重启 DSH 即可。 + +### 方式二:npm 手动装 1. 进 DSH profile 目录装(默认 profile 一般是 `~/.dsh/profiles/desktop`,装了多个 profile 时就选你用的那个): ```powershell @@ -64,7 +72,7 @@ 包的默认路径(`rules.json` / `health.json` / `voice.json` / `corpus/` / `say.ps1` / `stt-whisper.py`)全部按**插件包根目录**推导,装在哪个盘都不用改;要挪到别处(比如放自己的数据盘)在 profile 层覆盖即可。 -### 方式二:从源码(要改代码/跟 main 走时用) +### 方式三:从源码(要改代码/跟 main 走时用) 1. 把仓库克隆到固定位置: ```powershell