add optional pre-release tag

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers
2023-06-27 19:56:02 -07:00
parent 6f7454243e
commit cb35fb8d0e
3 changed files with 6 additions and 2 deletions

View File

@ -58,6 +58,7 @@ Config::Config()
// Version information
VERSION_MAJOR = @Launcher_VERSION_MAJOR@;
VERSION_MINOR = @Launcher_VERSION_MINOR@;
VERSION_PRERELEASE = "@Launcher_VERSION_PRERELEASE@";
BUILD_PLATFORM = "@Launcher_BUILD_PLATFORM@";
BUILD_ARTIFACT = "@Launcher_BUILD_ARTIFACT@";
@ -128,7 +129,7 @@ Config::Config()
QString Config::versionString() const
{
return QString("%1.%2").arg(VERSION_MAJOR).arg(VERSION_MINOR);
return QString("%1.%2%3").arg(VERSION_MAJOR).arg(VERSION_MINOR).arg(VERSION_PRERELEASE);
}
QString Config::printableVersionString() const

View File

@ -60,6 +60,8 @@ class Config {
/// The minor version number.
int VERSION_MINOR;
QString VERSION_PRERELEASE;
/**
* The version channel
* This is used by the updater to determine what channel the current version came from.