dsh-safe-restart

重启 DSH 并告诉你到底成没成。Windows 上没有「从外部让 Electron 干净退出」的通道(发 WM_CLOSE 只会最小化窗口),所以这个插件不装优雅:强制结束宿主、带重试地重新拉起、再轮询宿主端口确认它真的在服务,最后把结果写进本地文件,并在 desktop profile 配好 qq-notify 凭据(appId/clientSecret/openid)时发一条 QQ 消息。2026-11-08 端到端实测通过。

插件介绍

重启 DSH 并告诉你到底成没成。Windows 上没有「从外部让 Electron 干净退出」的通道(发 WM_CLOSE 只会最小化窗口),所以这个插件不装优雅:强制结束宿主、带重试地重新拉起、再轮询宿主端口确认它真的在服务,最后把结果写进本地文件,并在 desktop profile 配好 qq-notify 凭据(appId/clientSecret/openid)时发一条 QQ 消息。2026-11-08 端到端实测通过。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:Daphne999/dsh-safe-restart

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。