mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 09:10:22 +08:00
fix: 发布 1.1.51,修 skills 自导入删空、EnvAdapt op、同版本更新劫持与补丁锚点
Co-authored-by: Cursor <cursoragent@cursor.com> #54 拒绝 skills 源与目标重叠;#55 补 platformEnvAdaptStatus/Skip;#56 无版本 installer 不再劫持重启并恢复 app;#52/#57 锚点跟上 0.1.7/0.2,导出 patches_ready。
This commit is contained in:
1 parent
8f01cd8444
commit
a18fefa2a9
12 files changed
+147
-34
No files matched your search
+3
-1
@@ -46,7 +46,9 @@ function sameRev(a, b) {
|
||||
/** 当前插件版本和已写入补丁的版本一致时,启动不必再还原重打。 */
|
||||
export function stampMatches(stamp, version, rev) {
|
||||
if (!stamp || !stamp.version || stamp.version !== version) return false;
|
||||
if (rev && stamp.sha && !sameRev(rev, stamp.sha)) return false;
|
||||
// sha 为空表示 stamp 不完整(曾误写空串),不能当作已对齐(#56)。
|
||||
if (!stamp.sha) return false;
|
||||
if (rev && !sameRev(rev, stamp.sha)) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user