From 08464a16f0a6666880fbaa64f3c2c40f2126c3da Mon Sep 17 00:00:00 2001 From: Robin Davies Date: Wed, 28 Aug 2024 21:40:19 -0400 Subject: [PATCH] Experimetnal releases don't auto-update. --- src/Updater.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Updater.cpp b/src/Updater.cpp index 4357c83..2ebb8dd 100644 --- a/src/Updater.cpp +++ b/src/Updater.cpp @@ -431,12 +431,12 @@ void Updater::CheckForUpdate(bool useCache) updateResult = this->currentResult; } - const std::string responseOption = "-w \"%{response_code}\""; + //const std::string responseOption = "-w \"%{response_code}\""; #ifdef WIN32 responseOption = "-w \"%%{response_code}\""; // windows shell requires doubling of the %%. #endif - std::string args = SS("-s -L " << responseOption << " " << GITHUB_RELEASES_URL); + std::string args = SS("-s -L " << GITHUB_RELEASES_URL); updateResult.errorMessage_ = ""; @@ -477,7 +477,10 @@ void Updater::CheckForUpdate(bool useCache) GithubRelease release{el}; if (!release.draft && release.GetDownloadForCurrentArchitecture() != nullptr) { - releases.push_back(std::move(release)); + if (release.name.find("Experimental") == std::string::npos) // experimental releases do not participate in auto-updates (not even for dev stream) + { + releases.push_back(std::move(release)); + } } } std::sort(