dsh-desktop-windows 0.1.4 → 0.1.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/main.js +5 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-desktop-windows",
3
3
  "productName": "DeepSeek Harness Desktop",
4
- "version": "0.1.4",
4
+ "version": "0.1.5",
5
5
  "description": "DeepSeek Harness 桌面版(Windows)· Electron desktop shell for DeepSeek Harness (dsh web) — 双击即用,无需终端 / double-click to run the harness in a standalone window",
6
6
  "main": "src/main.js",
7
7
  "license": "MIT",
package/src/main.js CHANGED
@@ -383,12 +383,17 @@ function createApplicationMenu() {
383
383
  * 应用生命周期
384
384
  * ------------------------------------------------------------------ */
385
385
 
386
+ // Windows 任务栏固定/通知规范:AppUserModelID 与打包 appId 保持一致
387
+ app.setAppUserModelId('com.dsh.desktop')
388
+
386
389
  const gotLock = app.requestSingleInstanceLock()
387
390
  if (!gotLock) {
388
391
  app.quit()
389
392
  } else {
390
393
  app.on('second-instance', () => {
394
+ // 窗口可能隐藏到了托盘:必须 show() 才能从任务栏图标唤起
391
395
  if (mainWindow) {
396
+ mainWindow.show()
392
397
  if (mainWindow.isMinimized()) mainWindow.restore()
393
398
  mainWindow.focus()
394
399
  }