Clone
3
Install
wqmll edited this page 2026-10-21 14:00:32 +08:00
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.

安装(dsh-purge-plus 1.4.1)

本页据本仓 README.md Install 章节重建;命令中的下载地址所指的 GitHub 原仓库已 404,已换成本镜像仓的 Release。plus 面向 DSH 0.2.1-rc.2,宿主版本不够别硬装。

索引

一、前置条件

  • 宿主是官方 DSH 0.2.1-rc.2(dsh --version 可查)。0.2.0-rc.2 上请改用上游原版 dsh-purge(1.1.71)。
  • 两种宿主只能分别装、分别 Apply:官方 Web(dsh web)与官方桌面 EXE。Web 的安装不覆盖桌面端,反之亦然。

二、命令装

# Web
dsh plugin --profile web     add https://git.wqmll.com/wqmll/dsh-purge-plus/releases/download/v1.4.1/dsh-purge-plus-1.4.1.zip

# 桌面 EXE
dsh plugin --profile desktop add https://git.wqmll.com/wqmll/dsh-purge-plus/releases/download/v1.4.1/dsh-purge-plus-1.4.1.zip

# 离线(npm 包)
dsh plugin --profile web     add ./dsh-purge-plus-1.4.1.tgz
dsh plugin --profile desktop add ./dsh-purge-plus-1.4.1.tgz

仓库当前是私有的,上面的下载链接需要带 Gitea 账号或 token 才能拉;公开后即可匿名。也可以直接把 Release 里的 zip/tgz 下到本机,用 dsh plugin add ./xxx 离线装。

dsh --profile <名> plugin add:<名> 必须是你要用的那份 $DSH_HOME 对应的 profile,别顺手加到另一边。

注意: 不要在本仓 clone 目录里直接 dsh plugin add——package.json 里的 dsh.install.* 仍指向上游已删除的 GitHub 地址,会失败。要么用上面的 Release 链接,要么先把 dsh.install 三个字段改成本仓地址。

三、装完三步

  1. 退出并重开你装的那个宿主。
  2. 在那个宿主上点会话标题旁的 dsh-purge → Clean 页 → Apply。
  3. Apply 成功能重启一次让补丁生效;没走完不重启。

Web 的控件只影响 Web,桌面端只影响桌面端。

四、怎么确认装上

  • 会话标题旁有 dsh-purge 按钮,Clean 页有 Apply。
  • /purge status 会打印 DSH_HOME 与补丁清单,路径应是你实际在跑的 home。
  • 未装的可选包(liangshen)显示 skipped,不阻塞 Apply。

五、卸载

dsh-purge → Clean → Uninstall,或:

dsh-purge --uninstall
# 聊天里
/purge uninstall

版本与校验

版本 tgz zip
1.4.1 dsh-purge-plus-1.4.1.tgz dsh-purge-plus-1.4.1.zip
1.4.0 dsh-purge-plus-1.4.0.tgz dsh-purge-plus-1.4.0.zip

sha256 见各 Release 页正文与资产;装前对一下。1.4.0 起的改动见 Differences。