mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Merge pull request #3267 from nextcloud/feature/autoUpdatePlatforms
send OS name and version to auto updater to allow selective upgrades
This commit is contained in:
commit
05543d8b87
1 changed files with 5 additions and 0 deletions
|
@ -28,6 +28,8 @@
|
|||
#include "config.h"
|
||||
#include "configfile.h"
|
||||
|
||||
#include <QSysInfo>
|
||||
|
||||
namespace OCC {
|
||||
|
||||
Q_LOGGING_CATEGORY(lcUpdater, "nextcloud.gui.updater", QtInfoMsg)
|
||||
|
@ -88,6 +90,9 @@ QUrlQuery Updater::getQueryParams()
|
|||
}
|
||||
query.addQueryItem(QStringLiteral("version"), clientVersion());
|
||||
query.addQueryItem(QStringLiteral("platform"), platform);
|
||||
query.addQueryItem(QStringLiteral("osRelease"), QSysInfo::productType());
|
||||
query.addQueryItem(QStringLiteral("osVersion"), QSysInfo::productVersion());
|
||||
query.addQueryItem(QStringLiteral("kernelVersion"), QSysInfo::kernelVersion());
|
||||
query.addQueryItem(QStringLiteral("oem"), theme->appName());
|
||||
query.addQueryItem(QStringLiteral("buildArch"), QSysInfo::buildCpuArchitecture());
|
||||
query.addQueryItem(QStringLiteral("currentArch"), QSysInfo::currentCpuArchitecture());
|
||||
|
|
Loading…
Reference in a new issue