From 5399b9593694fc21766f29b2532876abf5a7b2bc Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 28 Feb 2021 14:33:20 -0600 Subject: [PATCH] Fix update checker on macOS with Qt 6.0 builds --- app/backend/autoupdatechecker.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/backend/autoupdatechecker.cpp b/app/backend/autoupdatechecker.cpp index 26d3a6f4..8c1e14d4 100644 --- a/app/backend/autoupdatechecker.cpp +++ b/app/backend/autoupdatechecker.cpp @@ -63,6 +63,10 @@ QString AutoUpdateChecker::getPlatform() return QStringLiteral("steamlink"); #elif defined(APP_IMAGE) return QStringLiteral("appimage"); +#elif defined(Q_OS_DARWIN) && QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + // Qt 6 changed this from 'osx' to 'macos'. Use the old one + // to be consistent (and not require another entry in the manifest). + return QStringLiteral("osx"); #else return QSysInfo::productType(); #endif