dsh-check-update
Check for DSH updates with changelog and backup
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bao-hp/dsh-check-update说明文档
阅读完整 README ↗配置
在 cordis.patch.yml 中配置:
- insert:
- id: check-update
name: dsh-check-update
config:
# 基础配置
distTag: latest
checkOnStart: true
checkIntervalMinutes: 240
autoStage: true
applyOnExit: true
relaunch: false
# 新增配置
showChangelog: true
autoBackup: true
backupKeepCount: 5
updateMode: auto
📖 使用说明
界面操作
- 检查更新:点击右下角的"检查更新"按钮
- 查看日志:切换到"日志"标签页查看更新内容
- 管理备份:在"备份"标签页创建和恢复备份
- 调整设置:在"设置"标签页修改配置
更新模式
- 自动模式:检测到更新后自动暂存,退出时应用
- 手动模式:用户手动触发更新
- 提示模式:检测到更新后提示用户选择
备份管理
- 自动备份:更新前自动备份配置和数据
- 手动备份:随时创建备份
- 备份恢复:从备份列表中选择恢复
- 备份清理:自动清理旧备份
⚙️ 配置选项
| 选项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
distTag | string | latest | npm dist-tag |
checkOnStart | boolean | true | 启动时检查更新 |
checkIntervalMinutes | number | 240 | 检查间隔(分钟) |
autoStage | boolean | true | 自动暂存更新 |
applyOnExit | boolean | true | 退出时应用更新 |
relaunch | boolean | false | 更新后自动重启 |
showChangelog | boolean | true | 显示更新日志 |
autoBackup | boolean | true | 自动备份 |
backupKeepCount | number | 5 | 保留备份数量 |
updateMode | string | auto | 更新模式 |