mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 09:50:22 +08:00
feat: 发布 1.1.19,支持官方桌面 EXE
官方客户端可以应用并自己重启;修掉重启弹窗、残留 PowerShell,以及更新时要手动还原再应用的问题。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
00ccf4a1f1
commit
fd8d47c00f
16 files changed
+973
-72
No files matched your search
+9
-1
@@ -23,7 +23,10 @@ export function pathLooksDesktop(p) {
|
||||
n.includes("/dsh desktop.app/") ||
|
||||
n.includes("dsh-desktop") ||
|
||||
n.includes("dsh-plugin-desktop") ||
|
||||
n.includes("/deepseek harness/") ||
|
||||
n.includes("deepseek-harness") ||
|
||||
/\/dsh desktop\.exe$/i.test(n) ||
|
||||
/\/deepseek harness\.exe$/i.test(n) ||
|
||||
n.endsWith("/host-process-entry.js") ||
|
||||
n.endsWith("/desktop-cli.js")
|
||||
);
|
||||
@@ -37,7 +40,12 @@ export function isDesktopSurface(input = {}) {
|
||||
|
||||
const execPath = input.execPath ?? process.execPath;
|
||||
const name = exeName(execPath);
|
||||
if (name === "dsh desktop.exe" || name === "dsh desktop") return true;
|
||||
if (
|
||||
name === "dsh desktop.exe" ||
|
||||
name === "dsh desktop" ||
|
||||
name === "deepseek harness.exe" ||
|
||||
name === "deepseek-harness.exe"
|
||||
) return true;
|
||||
if (pathLooksDesktop(execPath)) return true;
|
||||
|
||||
const resourcesPath = input.resourcesPath ?? process.resourcesPath;
|
||||
|
||||
Reference in new issue
Block a user