mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 07:20:22 +08:00
1.1.79: 修复 bug,修复稳定性(#165 #166 #167)
This commit is contained in:
1 parent
add692e491
commit
82da559cff
17 files changed
+872
-185
No files matched your search
@@ -7,6 +7,7 @@ import os from "node:os";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { atomicWriteSync, findDshHome } from "./core.js";
|
||||
import { ensureAllProfileInstall } from "./profile-insert.js";
|
||||
import { extractZipArchive } from "./zip-extract.js";
|
||||
|
||||
const REPO = "YuJunZhiXue/dsh-purge";
|
||||
@@ -1025,6 +1026,7 @@ async function _applyUpdateImpl(jobs, options) {
|
||||
vias.add("zip");
|
||||
}
|
||||
for (const dir of specProfiles) pinInstalledSpec(dir, ref);
|
||||
try { ensureAllProfileInstall(findDshHome()); } catch { /* 升级后补 insert,失败不挡这次覆盖 */ }
|
||||
const sha = (gitOk() ? gitHead(PLUGIN_ROOT) : "") || (await remoteHeadSha(ref).catch(() => ""));
|
||||
const via = vias.size > 1 ? "mixed" : [...vias][0] || detectVia();
|
||||
const saved = writeChannelState({ channel, pin });
|
||||
|
||||
Reference in new issue
Block a user