Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

should fix #7432 #7470

Merged
merged 2 commits into from
Sep 18, 2021
Merged

should fix #7432 #7470

merged 2 commits into from
Sep 18, 2021

Conversation

schwiti6190
Copy link
Contributor

@schwiti6190 schwiti6190 commented Sep 6, 2021

fixes #7432

@schwiti6190 schwiti6190 requested a review from pvaiko September 6, 2021 11:31
courseplay.lua Outdated
courseplay.versionDisplayStr = string.format('v%s.%s\n.%s', versionSplitStr[1], versionSplitStr[2], versionSplitStr[3]); --multiline display string
courseplay.isDevVersion = tonumber(versionSplitStr[3]) > 0;
courseplay.versionDisplayStr = string.format("v%s",courseplay.version)
courseplay.isDevVersion = true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea here was I think to follow the semantic versioning scheme (major.minor.patch, see https://semver.org/), with the last number of the three being 0 is an official modhub release, incremented between releases as we fix issues, then the next modhub release would increase the minor version. It is a 'dev' release if the patch number is not 0.

With this change we'd always show 'dev', so I'd rather get rid of that 4th number of the version string and return to the major.minor.patch scheme.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We must use 4 Numbers for ModHub, due to GIANTS Rules.
I like the old system more too, but GIANTS don't want that...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I see, then either:

  • change this code to check the 4th number instead of the 3rd to decide if 'dev' should be displayed, or
  • just display the version string and nothing else, don't worry about adding 'dev' to it.

@pvaiko pvaiko merged commit f472acf into master Sep 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

XXX should be refueled soon
3 participants