Fetch macOS VFS package in autoupdater if the client is using the file provider module
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 23 Apr 2024 14:58:55 +0000 (22:58 +0800)
committerCamila Ayres <hello@camilasan.com>
Tue, 23 Apr 2024 18:22:38 +0000 (20:22 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/updater/updater.cpp

index 46393fcfb9cacaa36c2e5fd4596731b72a95460f..4365ae5837ab4a2564b4fd186547b4029f96ac6c 100644 (file)
@@ -60,8 +60,10 @@ QUrl Updater::updateUrl()
     if (SparkleUpdater::autoUpdaterAllowed()) {
         urlQuery.addQueryItem(QLatin1String("sparkle"), QLatin1String("true"));
     }
+#ifdef BUILD_FILE_PROVIDER_MODULE
+    urlQuery.addQueryItem(QLatin1String("fileprovider"), QLatin1String("true"));
+#endif
 #endif
-
 #if defined(Q_OS_WIN)
     urlQuery.addQueryItem(QLatin1String("msi"), QLatin1String("true"));
 #endif