dsh-oc-desktop 0.3.12 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/launcher/main.js +10 -1
- package/package.json +9 -1
package/launcher/main.js
CHANGED
|
@@ -862,7 +862,16 @@ ipcMain.on('set-window-bg', (_e, color) => {
|
|
|
862
862
|
// 无单独更新:引擎有新版时兼容插件随引擎一起更新,不兼容插件保留;更新前备份旧引擎,可回滚。
|
|
863
863
|
function runCommand(cmd, args) {
|
|
864
864
|
return new Promise((resolve, reject) => {
|
|
865
|
-
|
|
865
|
+
// npx / npm 等是 .cmd shim,Node 的 spawn 在 Windows 无法直接执行(报 ENOENT),
|
|
866
|
+
// 须经 cmd /c 运行(与 spawnEngine / autoBootstrapSource 同款:仅含空白参数加引号)。
|
|
867
|
+
let command = cmd;
|
|
868
|
+
let spawnArgs = args;
|
|
869
|
+
if (process.platform === 'win32') {
|
|
870
|
+
const line = [cmd, ...args].map((a) => (/\s/.test(String(a)) ? `"${String(a).replace(/"/g, '""')}"` : String(a))).join(' ');
|
|
871
|
+
command = process.env.ComSpec || 'cmd.exe';
|
|
872
|
+
spawnArgs = ['/d', '/s', '/c', line];
|
|
873
|
+
}
|
|
874
|
+
const p = spawn(command, spawnArgs, { windowsHide: true, stdio: ['ignore', 'pipe', 'pipe'] });
|
|
866
875
|
let out = '';
|
|
867
876
|
p.stdout.on('data', (d) => { out += d; });
|
|
868
877
|
p.stderr.on('data', (d) => { out += d; });
|
package/package.json
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-oc-desktop",
|
|
3
3
|
"productName": "DeepSeek Harness Desktop",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.13",
|
|
5
5
|
"description": "DeepSeek Harness 桌面端插件(Electron 启动器):自绘标题栏/托盘/通知/快捷键/崩溃自愈",
|
|
6
6
|
"main": "launcher/main.js",
|
|
7
7
|
"bin": {
|
|
8
8
|
"dsh-desktop": "bin/dsh-desktop.cjs"
|
|
9
9
|
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/FeiJi-9527/dsh"
|
|
13
|
+
},
|
|
14
|
+
"publishConfig": {
|
|
15
|
+
"access": "public"
|
|
16
|
+
},
|
|
17
|
+
"author": "feiji9527",
|
|
10
18
|
"scripts": {
|
|
11
19
|
"start": "electron .",
|
|
12
20
|
"postinstall": "node scripts/postinstall.js",
|