diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-02-12 19:04:22 +0100 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-02-12 19:04:45 +0100 |
commit | 9ddbaaf7e8b844200b5d33c7b4702beaf201c55f (patch) | |
tree | 13515b1d950c8238957d586d106b5b6e3daa363c | |
parent | 3b7cc4391a8788f5b940a66a92e1ab2b7ae80d6d (diff) | |
download | PrismLauncher-9ddbaaf7e8b844200b5d33c7b4702beaf201c55f.tar.gz PrismLauncher-9ddbaaf7e8b844200b5d33c7b4702beaf201c55f.tar.bz2 PrismLauncher-9ddbaaf7e8b844200b5d33c7b4702beaf201c55f.zip |
feat: use commit hash for channel if ref not available
-rw-r--r-- | buildconfig/BuildConfig.cpp.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in index 074ce8de..0ffc9326 100644 --- a/buildconfig/BuildConfig.cpp.in +++ b/buildconfig/BuildConfig.cpp.in @@ -38,6 +38,10 @@ Config::Config() UPDATER_ENABLED = true; } } + else if (!GIT_COMMIT.isEmpty()) + { + VERSION_CHANNEL = GIT_COMMIT.mid(0, 8); + } else { VERSION_CHANNEL = QObject::tr("unknown"); |