Commit d362e34
[cmake] Fix version derivation on win/mac (#4215)
On Windows and macOS, our version includes a "win" or "mac" suffix in
the `<build>` component. In actual releases, that is all that the
`<build>` component consists of. This updates that part of the version
derivation logic such that the semantic version grammar is respected and
WiX accepts our version. We no longer have "+full" in our release tags
and we need our suffixes to be properly separated from the rest of the
version. In particular, they need to come after a single plus ('+') and
must be separated from other parts of the `<build>` component with dots
('.').
See
https://semver.org/#backusnaur-form-grammar-for-valid-semver-versions.1 parent a3a71f2 commit d362e34
1 file changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
227 | 234 | | |
| 235 | + | |
228 | 236 | | |
229 | | - | |
| 237 | + | |
230 | 238 | | |
231 | | - | |
| 239 | + | |
232 | 240 | | |
233 | 241 | | |
234 | 242 | | |
| |||
0 commit comments