Merge pull request #810 from Scrumplex/refactor-launcher-version

Hide channel from version for tagged commits
This commit is contained in:
flow
2022-07-12 07:46:46 -03:00
committed by GitHub
5 changed files with 242 additions and 69 deletions

View File

@ -89,6 +89,9 @@ class Config {
/// The git commit hash of this build
QString GIT_COMMIT;
/// The git tag of this build
QString GIT_TAG;
/// The git refspec of this build
QString GIT_REFSPEC;
@ -160,6 +163,7 @@ class Config {
QString MODRINTH_STAGING_URL = "https://staging-api.modrinth.com/v2";
QString MODRINTH_PROD_URL = "https://api.modrinth.com/v2";
QString versionString() const;
/**
* \brief Converts the Version to a string.
* \return The version number in string format (major.minor.revision.build).