fix: show active hot update version

This commit is contained in:
mac
2026-07-15 18:06:58 +08:00
parent 232aa41192
commit b29670250f
3 changed files with 5 additions and 4 deletions
+1
View File
@@ -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;
+2 -2
View File
@@ -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",
+2 -2
View File
@@ -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",