安装说明

August 20, 2026 · View on GitHub

README 中的一行命令适合安装最新稳定版。需要固定版本、校验发布资产或从源码安装时,请使用以下方式。

固定版本安装

当前版本:v0.3.1

从 Git tag 安装:

dsh plugin --profile web add git+https://github.com/weekitmo/dsh-notify.git#v0.3.1

也可以安装 Release 中由 CI 产出的预构建包,不需要 git checkout:

dsh plugin --profile web add https://github.com/weekitmo/dsh-notify/releases/download/v0.3.1/dsh-notify-0.3.1.tgz

SHA256SUMS

Release 同时发布 install.shinstall.batSHA256SUMSinstall.sh 面向 POSIX shell,install.bat 面向 Windows CMD;两者都支持通过 DSH_NOTIFY_VERSIONDSH_NOTIFY_PROFILE 固定版本与 profile。安全或可复现安装建议先固定版本,下载并校验资产,再安装本地包:

mkdir dsh-notify-v0.3.1 && cd dsh-notify-v0.3.1
curl -fsSLO https://github.com/weekitmo/dsh-notify/releases/download/v0.3.1/install.sh
curl -fsSLO https://github.com/weekitmo/dsh-notify/releases/download/v0.3.1/install.bat
curl -fsSLO https://github.com/weekitmo/dsh-notify/releases/download/v0.3.1/dsh-notify-0.3.1.tgz
curl -fsSLO https://github.com/weekitmo/dsh-notify/releases/download/v0.3.1/SHA256SUMS
sha256sum -c SHA256SUMS        # Linux
# shasum -a 256 -c SHA256SUMS # macOS
dsh plugin --profile web add "$PWD/dsh-notify-0.3.1.tgz"

Windows CMD 可下载批处理安装器并用系统自带的 certutil 核对 SHA256SUMS 中对应的哈希:

mkdir dsh-notify-v0.3.1 && cd dsh-notify-v0.3.1
curl.exe -fsSLO https://github.com/weekitmo/dsh-notify/releases/download/v0.3.1/install.bat
curl.exe -fsSLO https://github.com/weekitmo/dsh-notify/releases/download/v0.3.1/SHA256SUMS
certutil -hashfile install.bat SHA256
set DSH_NOTIFY_VERSION=v0.3.1
install.bat

certutil 输出的哈希与 SHA256SUMSinstall.bat 对应行比较后再执行。

从源码安装

git clone --branch v0.3.1 --depth 1 https://github.com/weekitmo/dsh-notify.git
cd dsh-notify
corepack enable
pnpm install --frozen-lockfile
pnpm run check
dsh plugin --profile web add "file:$PWD"

DSH 不会为 file:、Git tag 或 GitHub 源码 archive 额外执行插件的 build。本仓库因此提交并发布 lib/;从源码安装时仍应运行 pnpm run check,确保构建产物与 src/ 一致。

安装后刷新 WebUI。若插件没有自动加载,重启对应的 dsh web 进程后再刷新页面。

返回 README