Skip to content

Commit

Permalink
Skip older update versions (for beta branch)
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderfrangos committed Oct 7, 2024
1 parent 94c367e commit b9b083f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -3498,6 +3498,12 @@ checkForUpdates = async (force = false) => {
let foundVersion = false
for (let release of releases) {
if (!(settings.branch === "master" && release.prerelease === true)) {

// Skip versions older than current
const versionParsed = Utils.getVersionValue(release.tag_name)
const appVersionValue = Utils.getVersionValue(`v${app.getVersion()}`)
if(versionParsed < appVersionValue) continue;

foundVersion = true
latestVersion = {
releaseURL: (release.html_url),
Expand Down

0 comments on commit b9b083f

Please sign in to comment.