JustGenius-s/DSH-Plugs--plugins-dsh-desktop-update ↗★ 6
@just-genius/dsh-desktop-update
适用于 DSH-Desktop 的更新徽章插件:在 Web 侧栏设置按钮旁渲染更新图标,由 Electron 预加载桥驱动。
AI 分析
核心用途是为 DSH 桌面客户端提供就地升级和更新提示功能。适合使用 DSH-Desktop 客户端的用户,支持一键跳转 GitHub 下载新版、通过 pnpm 就地升级运行时以及临时跳过当前版本。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JustGenius-s/DSH-Plugs#dd69eb2a6a9cf561110190d2d4885454339039fc&path:plugins/dsh-desktop-update說明文件
閱讀完整 README ↗@just-genius/dsh-desktop-update
DSH-Desktop 的更新徽章插件:在 Web 侧栏设置按钮旁渲染更新图标,数据来自
DSH-Desktop preload 暴露的 window.dshDesktop(Electron contextBridge)。
- 纯客户端插件:host 半侧为空(只为出现在 Loader 树里),浏览器半侧注册
sidebar.footer.action列表 slot 条目。 - 在普通浏览器(无
window.dshDesktop)中不渲染任何内容,插件保持惰性。 - 支持的操作:App 本体跳 GitHub Releases 下载、DSH 运行时就地升级(pnpm)
- 重启生效、「跳过该版本」(出现更新的版本后自动恢复提示)。
安装
通常由 DSH-Desktop 主进程自动完成(scripts/install-desktop-plugin.mjs, npm 优先、本目录源码回退)。手动安装:
pnpm install && pnpm build
# 在 ~/.dsh/profiles/web/package.json 中:
# dsh.profile.bundles 加 "@just-genius/dsh-desktop-update"
# dependencies 加 "@just-genius/dsh-desktop-update": "link:"
禁用:在 ~/.dsh/cordis.patch.yml 加 - id: desktop-update\n disabled: true。