From 7ec51691f70a4f584641080c465663f1f7d13ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=AB=E6=88=91=E5=B0=8F=E6=9D=A8=E5=90=8C=E5=AD=A6?= <188421097+HunYiSage@users.noreply.github.com> Date: Mon, 28 Sep 2026 18:09:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8F=91=E5=B8=83=201.1.33=EF=BC=8C?= =?UTF-8?q?=E5=B7=B2=E9=87=8D=E5=90=AF=E5=90=8E=E6=89=93=E5=BC=80=E9=9D=A2?= =?UTF-8?q?=E6=9D=BF=E4=B8=8D=E5=86=8D=E9=87=8D=E5=A4=8D=E8=A6=81=E6=B1=82?= =?UTF-8?q?=E9=87=8D=E5=90=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Cursor --- README.md | 2 +- README.zh-CN.md | 2 +- lib/reapply.js | 5 ++++- package.json | 2 +- release-notes.md | 12 ++++++++++++ 5 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 065028f..837b114 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@

⚔️ DeepSeek Harness cybersecurity red-team tool (dsh-purge)

-

Version 1.1.32

+

Version 1.1.33

Local official DeepSeek Harness cybersecurity red-team plugin. Clean host policy, and ship a built-in drill console. Swap prompts per model. Default prompt for Chinese models — 小码酱. Please star ⭐ diff --git a/README.zh-CN.md b/README.zh-CN.md index 801f047..3719964 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -4,7 +4,7 @@

⚔️ DeepSeek Harness 网络安全红队工具(dsh-purge)

-

Version 1.1.32

+

Version 1.1.33

本机官方 DeepSeek Harness 网络安全红队评测插件。清洗宿主策略,并带内嵌演练台。不同模型可换不同提示词。默认提示词面向国模「小码酱」。求 Star 收藏 ⭐ diff --git a/lib/reapply.js b/lib/reapply.js index c9d9f30..453859c 100644 --- a/lib/reapply.js +++ b/lib/reapply.js @@ -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, }; } diff --git a/package.json b/package.json index b3a8ea6..23826b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dsh-purge", - "version": "1.1.32", + "version": "1.1.33", "description": "DeepSeek Harness 网络安全红队工具:本机官方 Harness 受控评测与清洗,内嵌演练台;不同模型可换不同提示词;默认提示词面向国模「小码酱」。求 Star ⭐", "type": "module", "main": "lib/index.js", diff --git a/release-notes.md b/release-notes.md index d81e4e1..f686244 100644 --- a/release-notes.md +++ b/release-notes.md @@ -1,3 +1,15 @@ +# 1.1.33 + +## 中文 + +- 版本升级到 1.1.33。 +- **修复已经重启后,打开面板仍弹出「需要重启」**。官方客户端已经从解开的 `resources/app` 运行时,不再仅因为当前是官方进程就再要求退出一次。只有这次真的挪开了 `app.asar`,才会提示重启。 + +## English + +- Version 1.1.33. +- **Fix the restart dialog coming back after you already restarted.** When the official app is already running from the unpacked `resources/app`, opening the panel no longer asks you to quit again just because this is the official process. The restart prompt appears only when `app.asar` was actually moved aside in this run. + # 1.1.32 ## 中文