Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deb pre-release builds are considered upgrades compared to final release builds #7977

Closed
mvitale1989 opened this issue Jan 11, 2024 · 0 comments · Fixed by #7978
Closed

Deb pre-release builds are considered upgrades compared to final release builds #7977

mvitale1989 opened this issue Jan 11, 2024 · 0 comments · Fixed by #7978

Comments

@mvitale1989
Copy link
Contributor

  • Electron-Builder Version: 24.9.1
  • Node Version: 16.17.0
  • Electron Version: 27.0.2
  • Electron Type (current, beta, nightly): current
  • Target: deb

Debian considers pre-release packages built by electron-builder to be more recent than their respective final releases.

For example:

### According to semver 2.0, '1.0.0' should be considered greater than '1.0.0-rc1'. But for Debian it's not.
### This means that Debian will consider final releases a "downgrade" compared to the RCs, so it will always prefer installing the RC if both are available
$ dpkg --compare-versions 1.0.0 gt 1.0.0-rc1; echo $?
1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant