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配置
在 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-download
📖 使用说明
界面操作
- 检查更新:点击右下角的"检查更新"按钮
- 查看日志:切换到"日志"标签页查看更新内容
- 管理备份:在"备份"标签页创建和恢复备份
- 调整设置:在卡片的"设置"区修改更新模式与版本通道(稳定版/测试版)
更新模式
- 自动下载更新:检测到更新后自动下载并暂存,harness 退出时自动应用
- 自动下载手动更新:自动下载并暂存,但不自动应用,由用户点击"更新并重启"应用
- 手动更新:仅提示有更新,用户点击"更新并重启"时才下载并应用
版本通道
- 稳定版(latest):跟随 npm
latestdist-tag - 测试版(next):跟随 npm
nextdist-tag
备份管理
- 自动备份:更新前自动备份配置和数据
- 手动备份:随时创建备份
- 备份恢复:从备份列表中选择恢复
- 备份清理:自动清理旧备份
⚙️ 配置选项
| 选项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
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-download | 更新模式:auto-download(自动下载+自动应用)/ auto-download-manual(自动下载+手动应用)/ manual(手动下载+应用) |