mirror of
https://github.com/semver/semver.git
synced 2026-07-11 03:53:53 -05:00
[GH-ISSUE #332] Internal version numbers for pre-releases #5357
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @magol on GitHub (Sep 21, 2016).
Original GitHub issue: https://github.com/semver/semver/issues/332
When you install a application in Windows, the application must have a version in the form major.minor.patch, and that match semver. But what do I do with eg. version 1.1.3-rc1
We must have some way of have numerical version numbers for pre-releases.
One (bad) option is not to allow any pre-release for patches and increase the patch version for each pre-release.
I don't like it, it is strange. But how should I do?
@FichteFoll commented on GitHub (Sep 21, 2016):
Can't you just use
1.8.0for all of them? I mean, the main version part is still1.8.0and only the pre-release identifier, which Windows doesn't support, changes. Or do these versions have to increment?@magol commented on GitHub (Sep 22, 2016):
But, if I install 1.8.0-rc2 with version number 1.8.0 and then install 1.8.0-rc3 also with version number 1.8.0, do Windows see any difference between the versions?
Unless I misunderstood something, MSI will see it as I'm trying to install the same version that I already have with strange results as a consequence. We have in any case not got it to work when we tested.
@lvv83 commented on GitHub (Mar 2, 2017):
What about fourth (build) number for internal version? Something like this
@magol commented on GitHub (Mar 2, 2017):
@lvv83 Great suggestion, but I do think that MSI only care about three numbers :-(
@lvv83 commented on GitHub (Mar 2, 2017):
Well, MSI ProductVersion is incompatible with semver cause it use
major.minor.buildformat (no prereleases). Also it has constraints like maximum value of 255 formajorandminor, 65535 forbuild.So, we need for some new rule, which translates semver to MSI ProductVersion and vice versa.
We can combine patch and prerelease numbers from semver to the MSI build number. But first we need to replace semver with appropriate internal version.
@magol commented on GitHub (Mar 2, 2017):
I like this solution. But it is strange that the numbers go from 4 to 1001.
@lvv83 commented on GitHub (Mar 2, 2017):
You can use any rule for msi build number. Yet one without strange gaps.
@711216 commented on GitHub (Nov 29, 2018):
Buscar archivos de mi nube
@jaques-sam commented on GitHub (May 16, 2019):
I don't understand your referenced link @grv87, he is not using it for product.
@magol there are 4 numbers available for a version number within EXE & DLLs.
And how do you encode alpha, beta, pre... (are there others?)
@alexandrtovmach commented on GitHub (Jun 10, 2020):
Thanks everyone for contributions, you're amazing 🎆 Did you find any consensus?
@alexandrtovmach commented on GitHub (Jun 14, 2021):
Closing as staled, feel free to re-open or create a new issue 👻