mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 13:50:22 +08:00
fix: 发布 1.1.33,已重启后打开面板不再重复要求重启
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
43e15006bd
commit
7ec51691f7
5 files changed
+19
-4
No files matched your search
+4
-1
@@ -109,6 +109,9 @@ export async function reapplyInstalled(options = {}) {
|
||||
const summary = core.summarizeApplyReport(report);
|
||||
writeAppliedStamp(installedRev());
|
||||
const pending = Boolean(handoff?.asar && !renamed && options.scheduleSwap !== false);
|
||||
// 只有真的挪开了 app.asar,当前进程才还在旧包上,需要再开一次。
|
||||
// 官方端已经在 resources/app 里跑时,不能仅因 ELECTRON_RUN_AS_NODE 再弹「需要重启」,
|
||||
// 否则每次打开面板都会再要一次重启。
|
||||
return {
|
||||
ok: true,
|
||||
version: pluginVersion(),
|
||||
@@ -116,7 +119,7 @@ export async function reapplyInstalled(options = {}) {
|
||||
applied: summary.applied || 0,
|
||||
failed: summary.failed.length,
|
||||
renamed,
|
||||
needsFullQuit: renamed || pending || core.officialHostMustStayUp(),
|
||||
needsFullQuit: renamed || pending,
|
||||
cmdFlashOk: flash.ok === true,
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user