Experimetnal releases don't auto-update.

This commit is contained in:
Robin Davies
2024-08-28 21:40:19 -04:00
parent d93b354163
commit 08464a16f0
+6 -3
View File
@@ -431,12 +431,12 @@ void Updater::CheckForUpdate(bool useCache)
updateResult = this->currentResult; updateResult = this->currentResult;
} }
const std::string responseOption = "-w \"%{response_code}\""; //const std::string responseOption = "-w \"%{response_code}\"";
#ifdef WIN32 #ifdef WIN32
responseOption = "-w \"%%{response_code}\""; // windows shell requires doubling of the %%. responseOption = "-w \"%%{response_code}\""; // windows shell requires doubling of the %%.
#endif #endif
std::string args = SS("-s -L " << responseOption << " " << GITHUB_RELEASES_URL); std::string args = SS("-s -L " << GITHUB_RELEASES_URL);
updateResult.errorMessage_ = ""; updateResult.errorMessage_ = "";
@@ -477,7 +477,10 @@ void Updater::CheckForUpdate(bool useCache)
GithubRelease release{el}; GithubRelease release{el};
if (!release.draft && release.GetDownloadForCurrentArchitecture() != nullptr) 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( std::sort(