From f1eab4e26a1ebcc25f82dc27773f51b7c1009074 Mon Sep 17 00:00:00 2001 From: tooomm Date: Thu, 2 Aug 2018 21:31:32 +0200 Subject: [PATCH] remove unused beta file endings (#3338) --- cockatrice/src/releasechannel.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cockatrice/src/releasechannel.cpp b/cockatrice/src/releasechannel.cpp index f788ff30..841f801a 100644 --- a/cockatrice/src/releasechannel.cpp +++ b/cockatrice/src/releasechannel.cpp @@ -9,8 +9,8 @@ #include #define STABLERELEASE_URL "https://api.github.com/repos/Cockatrice/Cockatrice/releases/latest" -#define STABLETAG_URL "https://api.github.com/repos/Cockatrice/Cockatrice/git/refs/tags/" #define STABLEMANUALDOWNLOAD_URL "https://github.com/Cockatrice/Cockatrice/releases/latest" +#define STABLETAG_URL "https://api.github.com/repos/Cockatrice/Cockatrice/git/refs/tags/" #define BETARELEASE_URL "https://api.github.com/repos/Cockatrice/Cockatrice/releases" #define BETAMANUALDOWNLOAD_URL "https://github.com/Cockatrice/Cockatrice/releases/" @@ -53,22 +53,18 @@ bool ReleaseChannel::downloadMatchesCurrentOS(const QString &fileName) { QString wordSize = QSysInfo::buildAbi().split('-')[2]; QString arch; - QString betaEnd; if (wordSize == "llp64") { arch = "win64"; - betaEnd = "-x86_64_qt5"; } else if (wordSize == "ilp32") { arch = "win32"; - betaEnd = "-x86_qt5"; } else { qWarning() << "Error checking for upgrade version: wordSize is" << wordSize; return false; } auto exeName = arch + ".exe"; - auto exeBetaName = betaEnd + ".exe"; - return (fileName.endsWith(exeName) || fileName.endsWith(exeBetaName)); + return (fileName.endsWith(exeName)); } #else