aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-02-12 18:17:56 +0100
committerSefa Eyeoglu <contact@scrumplex.net>2022-02-12 18:17:56 +0100
commit3b7cc4391a8788f5b940a66a92e1ab2b7ae80d6d (patch)
treed02bdeaefaf0f195e0ae669fc68f515c8634d898
parent70a055bc278d4be86b5fca3f03ada312c4577f3d (diff)
downloadPrismLauncher-3b7cc4391a8788f5b940a66a92e1ab2b7ae80d6d.tar.gz
PrismLauncher-3b7cc4391a8788f5b940a66a92e1ab2b7ae80d6d.tar.bz2
PrismLauncher-3b7cc4391a8788f5b940a66a92e1ab2b7ae80d6d.zip
fix: don't use custom for version channel
Closes #159
-rw-r--r--buildconfig/BuildConfig.cpp.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/buildconfig/BuildConfig.cpp.in b/buildconfig/BuildConfig.cpp.in
index 5d5167ec..074ce8de 100644
--- a/buildconfig/BuildConfig.cpp.in
+++ b/buildconfig/BuildConfig.cpp.in
@@ -30,15 +30,17 @@ Config::Config()
GIT_COMMIT = "@Launcher_GIT_COMMIT@";
GIT_REFSPEC = "@Launcher_GIT_REFSPEC@";
- if(GIT_REFSPEC.startsWith("refs/heads/") && !UPDATER_BASE.isEmpty() && !BUILD_PLATFORM.isEmpty() && VERSION_BUILD >= 0)
+ if(GIT_REFSPEC.startsWith("refs/heads/"))
{
VERSION_CHANNEL = GIT_REFSPEC;
VERSION_CHANNEL.remove("refs/heads/");
- UPDATER_ENABLED = true;
+ if(!UPDATER_BASE.isEmpty() && !BUILD_PLATFORM.isEmpty() && VERSION_BUILD >= 0) {
+ UPDATER_ENABLED = true;
+ }
}
else
{
- VERSION_CHANNEL = QObject::tr("custom");
+ VERSION_CHANNEL = QObject::tr("unknown");
}
VERSION_STR = "@Launcher_VERSION_STRING@";