mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-18 06:30:55 +00:00
Fix update checker on macOS with Qt 6.0 builds
This commit is contained in:
@@ -63,6 +63,10 @@ QString AutoUpdateChecker::getPlatform()
|
|||||||
return QStringLiteral("steamlink");
|
return QStringLiteral("steamlink");
|
||||||
#elif defined(APP_IMAGE)
|
#elif defined(APP_IMAGE)
|
||||||
return QStringLiteral("appimage");
|
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
|
#else
|
||||||
return QSysInfo::productType();
|
return QSysInfo::productType();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user