refactor(updater, ci): 重构版本处理逻辑,适配新的版本格式

调整GitHub Release工作流的beta版本号格式,将`beta.$buildId`改为`$buildId.beta`,对齐新的版本命名规范
新增统一的版本标签解析与过滤逻辑,支持识别多种版本格式并屏蔽旧版beta候选
重写版本比较函数,修复旧版本比较的逻辑问题
重构更新检查与通道配置流程,不再依赖electron-updater的内置频道规则
优化发布说明获取的回退逻辑,统一使用generic feed结合多镜像源提升更新稳定性
This commit is contained in:
2026-09-05 19:08:23 +08:00
parent ffac581018
commit 37a5bb7538
3 changed files with 132 additions and 135 deletions
+2 -2
View File
@@ -119,7 +119,7 @@ jobs:
$buildId = "$env:GITHUB_RUN_NUMBER"
$base = node scripts/version.js get
if ("${{ inputs.mode }}" -eq "beta") {
$full = node scripts/version.js build ci "beta.$buildId"
$full = node scripts/version.js build ci "$buildId.beta"
} else {
$full = node scripts/version.js build ci "$buildId"
}
@@ -244,7 +244,7 @@ jobs:
run: |
$buildId = "$env:GITHUB_RUN_NUMBER"
if ("${{ inputs.mode }}" -eq "beta") {
$full = node scripts/version.js build ci "beta.$buildId"
$full = node scripts/version.js build ci "$buildId.beta"
} else {
$full = node scripts/version.js build ci "$buildId"
}