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
+5 -2
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_ = "";
@@ -476,10 +476,13 @@ void Updater::CheckForUpdate(bool useCache)
auto &el = vArray->at(0); auto &el = vArray->at(0);
GithubRelease release{el}; GithubRelease release{el};
if (!release.draft && release.GetDownloadForCurrentArchitecture() != nullptr) if (!release.draft && release.GetDownloadForCurrentArchitecture() != nullptr)
{
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)); releases.push_back(std::move(release));
} }
} }
}
std::sort( std::sort(
releases.begin(), releases.begin(),
releases.end(), releases.end(),