dsh-clean-desktop-shell 0.1.10 → 0.1.11

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/electron/tray.js CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  onStatusChange,
20
20
  } from './service.js'
21
21
  import { showProgress, setProgress, closeProgress } from './progress.js'
22
- import { checkForUpdate, checkForUpdatesAuto, isAutoUpdateSupported, openRepo, openUrl } from './update.js'
22
+ import { checkForUpdatesAuto, openRepo } from './update.js'
23
23
  import { shortcutSupported, createDesktopShortcut } from './shortcut.js'
24
24
 
25
25
  const trayIconPath = join(
@@ -142,37 +142,11 @@ export function refreshTrayMenu() {
142
142
  {
143
143
  label: '检查更新…',
144
144
  click: async () => {
145
- // Windows (packaged): auto-download + install on restart.
146
- // macOS / dev mode: manual page link (macOS needs a signature).
147
- if (isAutoUpdateSupported()) {
148
- await checkForUpdatesAuto()
149
- return
150
- }
151
- const r = await checkForUpdate()
152
- if (r.hasUpdate) {
153
- const choice = dialog.showMessageBoxSync({
154
- type: 'info',
155
- title: '发现新版本',
156
- message: `当前版本 ${r.current},最新版本 ${r.latest}。`,
157
- detail: '是否前往 GitHub Releases 页面下载?',
158
- buttons: ['前往下载', '取消'],
159
- defaultId: 0,
160
- cancelId: 1,
161
- })
162
- if (choice === 0) openUrl(r.url)
163
- } else if (r.latest) {
164
- dialog.showMessageBoxSync({
165
- type: 'info',
166
- title: '已是最新版本',
167
- message: `当前版本 ${r.current} 已是最新(${r.latest})。`,
168
- })
169
- } else {
170
- dialog.showMessageBoxSync({
171
- type: 'warning',
172
- title: '检查更新失败',
173
- message: '无法连接 GitHub 检查更新,请检查网络后重试。',
174
- })
175
- }
145
+ // checkForUpdatesAuto() handles all three modes internally:
146
+ // Windows packaged electron-updater auto-download
147
+ // Plugin mode → npm registry check + one-click update
148
+ // macOS packaged → GitHub Releases manual link
149
+ await checkForUpdatesAuto()
176
150
  },
177
151
  },
178
152
  {
@@ -249,7 +249,7 @@ export async function checkForUpdate() {
249
249
  // Network error — no update known.
250
250
  }
251
251
 
252
- const currentV = parseVersion(current)
252
+ const currentV = coerceVersion(current)
253
253
  return {
254
254
  hasUpdate: isNewer(latest, currentV),
255
255
  latest: tag,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-clean-desktop-shell",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Clean desktop shell for DeepSeek Harness (DSH) as a DSH plugin — wraps your web profile in a native window, tray-managed backend, offline auto-reconnect, zero visual changes. DSH 插件形态的纯净桌面壳:复用现有 web profile,托盘管理后端,零视觉改造。",
5
5
  "repository": {
6
6
  "type": "git",
package/version.txt CHANGED
@@ -1 +1 @@
1
- 0.1.10
1
+ 0.1.11