diff --git a/electron/main.js b/electron/main.js index 4a51d91..3091eb5 100644 --- a/electron/main.js +++ b/electron/main.js @@ -1341,6 +1341,7 @@ ipcMain.handle("proxy-test", async () => proxy.testProxy()); // 有效内容版本:优先已确认健康的热更版本,其次包内 hotContentVersion,兜底 app.getVersion()。 // 让设置页版本号随热更走(热更不替换 package.json,单纯 app.getVersion() 会永远停在打包版本)。 function effectiveAppVersion() { + if (APP_ROOT !== BUNDLE_ROOT) return path.basename(APP_ROOT); try { const v = hotstate.effectiveVersion(global.__HOT_BASE__); if (v) return v; diff --git a/package-lock.json b/package-lock.json index bbc7129..4c3259b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "codex-market", - "version": "1.5.8", + "version": "1.5.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "codex-market", - "version": "1.5.8", + "version": "1.5.9", "license": "MIT", "dependencies": { "electron-updater": "^6.8.9", diff --git a/package.json b/package.json index f3c0835..3a3ae32 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "codex-market", - "version": "1.5.8", + "version": "1.5.9", "description": "TD工具箱 / 技能商店 / 备份工具 —— 跨平台桌面客户端", "author": "Codex Market", "license": "MIT", "main": "electron/bootstrap.js", - "hotContentVersion": "1.5.8", + "hotContentVersion": "1.5.9", "scripts": { "start": "electron .", "dist": "electron-builder",