file filenames so window updater works (#2500)
* file filenames so window updater works
This commit is contained in:
parent
fb194db766
commit
3b2eff2551
1 changed files with 8 additions and 1 deletions
|
@ -55,10 +55,14 @@ bool ReleaseChannel::downloadMatchesCurrentOS(QVariantMap build)
|
||||||
{
|
{
|
||||||
QString wordSize = QSysInfo::buildAbi().split('-')[2];
|
QString wordSize = QSysInfo::buildAbi().split('-')[2];
|
||||||
QString arch;
|
QString arch;
|
||||||
|
QString devSnapshotEnd;
|
||||||
|
|
||||||
if (wordSize == "llp64") {
|
if (wordSize == "llp64") {
|
||||||
arch = "win64";
|
arch = "win64";
|
||||||
|
devSnapshotEnd = "-x86_64_qt5";
|
||||||
} else if (wordSize == "ilp32") {
|
} else if (wordSize == "ilp32") {
|
||||||
arch = "win32";
|
arch = "win32";
|
||||||
|
devSnapshotEnd = "-x86_qt5";
|
||||||
} else {
|
} else {
|
||||||
qWarning() << "Error checking for upgrade version: wordSize is" << wordSize;
|
qWarning() << "Error checking for upgrade version: wordSize is" << wordSize;
|
||||||
return false;
|
return false;
|
||||||
|
@ -68,7 +72,10 @@ bool ReleaseChannel::downloadMatchesCurrentOS(QVariantMap build)
|
||||||
// Checking for .zip is a workaround for the May 6th 2016 release
|
// Checking for .zip is a workaround for the May 6th 2016 release
|
||||||
auto zipName = arch + ".zip";
|
auto zipName = arch + ".zip";
|
||||||
auto exeName = arch + ".exe";
|
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
|
#else
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue