From 3b2eff2551a3eed20a005c38a568f5258cf0a1c2 Mon Sep 17 00:00:00 2001 From: Zach H Date: Sat, 18 Mar 2017 18:48:40 -0400 Subject: [PATCH] file filenames so window updater works (#2500) * file filenames so window updater works --- cockatrice/src/releasechannel.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/releasechannel.cpp b/cockatrice/src/releasechannel.cpp index 1e48bacc..06948cdf 100644 --- a/cockatrice/src/releasechannel.cpp +++ b/cockatrice/src/releasechannel.cpp @@ -55,10 +55,14 @@ bool ReleaseChannel::downloadMatchesCurrentOS(QVariantMap build) { QString wordSize = QSysInfo::buildAbi().split('-')[2]; QString arch; + QString devSnapshotEnd; + if (wordSize == "llp64") { arch = "win64"; + devSnapshotEnd = "-x86_64_qt5"; } else if (wordSize == "ilp32") { arch = "win32"; + devSnapshotEnd = "-x86_qt5"; } else { qWarning() << "Error checking for upgrade version: wordSize is" << wordSize; return false; @@ -68,7 +72,10 @@ bool ReleaseChannel::downloadMatchesCurrentOS(QVariantMap build) // Checking for .zip is a workaround for the May 6th 2016 release auto zipName = arch + ".zip"; auto exeName = arch + ".exe"; - return fileName.endsWith(exeName) || fileName.endsWith(zipName); + auto zipDebugName = devSnapshotEnd + ".zip"; + auto exeDebugName = devSnapshotEnd + ".exe"; + return (fileName.endsWith(exeName) || fileName.endsWith(zipName) || + fileName.endsWith(exeDebugName) || fileName.endsWith(zipDebugName)); } #else