Skip to content

Commit

Permalink
optimize: 预发布版本判断条件优化
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Dec 2, 2024
1 parent 5734948 commit 3b604d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gui/src/bridge/update/backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function updateHandle (app, api, win, beforeQuit, quit, log) {
log.info('跳过即 “不是正式,又不是预发布” 的版本:', versionData.name)
continue // 跳过即 “不是正式,又不是预发布” 的版本
}
if (!isPreRelease && DevSidecar.api.config.get().app.skipPreRelease && versionData.name.includes('-')) {
if (!isPreRelease && DevSidecar.api.config.get().app.skipPreRelease && (versionData.name.includes('-') || versionData.prerelease)) {
log.info('跳过预发布版本:', versionData.name)
continue // 跳过预发布版本
}
Expand Down

0 comments on commit 3b604d0

Please sign in to comment.