mirror of
https://github.com/chylex/Nextcloud-Desktop.git
synced 2025-04-25 10:15:47 +02:00
Updater: Rudimentary support for beta channel
So we can get people update from our alpha to the beta and rc
This commit is contained in:
parent
d59c146488
commit
36117336e7
@ -61,6 +61,18 @@ QUrl Updater::addQueryParams(const QUrl &url)
|
||||
paramUrl.addQueryItem(QLatin1String("version"), clientVersion());
|
||||
paramUrl.addQueryItem(QLatin1String("platform"), platform);
|
||||
paramUrl.addQueryItem(QLatin1String("oem"), theme->appName());
|
||||
|
||||
QString suffix = QString::fromLatin1(MIRALL_STRINGIFY(MIRALL_VERSION_SUFFIX));
|
||||
paramUrl.addQueryItem(QLatin1String("versionsuffix"), suffix);
|
||||
if (suffix.startsWith("nightly")
|
||||
|| suffix.startsWith("alpha")
|
||||
|| suffix.startsWith("rc")
|
||||
|| suffix.startsWith("beta")) {
|
||||
paramUrl.addQueryItem(QLatin1String("channel"), "beta");
|
||||
// FIXME: Provide a checkbox in UI to enable regular versions to switch
|
||||
// to beta channel
|
||||
}
|
||||
|
||||
return paramUrl;
|
||||
}
|
||||
|
||||
|
@ -30,6 +30,8 @@
|
||||
#define MIRALL_VERSION_PATCH @MIRALL_VERSION_PATCH@
|
||||
#define MIRALL_VERSION_BUILD @MIRALL_VERSION_BUILD@
|
||||
|
||||
#define MIRALL_VERSION_SUFFIX @MIRALL_VERSION_SUFFIX@
|
||||
|
||||
#define MIRALL_VERSION @MIRALL_VERSION@
|
||||
#define MIRALL_VERSION_FULL @MIRALL_VERSION_FULL@
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user