Files

39 lines
1.3 KiB
C++
Raw Permalink Normal View History

2023-05-03 11:22:11 -07:00
--- application/applicationupdater.cpp.orig 2023-03-27 09:51:38 UTC
2022-11-28 14:08:08 -07:00
+++ application/applicationupdater.cpp
2023-05-03 11:22:11 -07:00
@@ -63,6 +63,9 @@ void ApplicationUpdater::installUpdate(const Flipper::
2022-11-28 14:08:08 -07:00
void ApplicationUpdater::installUpdate(const Flipper::Updates::VersionInfo &versionInfo)
{
+#ifdef Q_OS_UNIX
+ return;
+#else
#ifdef Q_OS_WINDOWS
const auto fileInfo = versionInfo.fileInfo(QStringLiteral("installer"), QStringLiteral("windows/amd64"));
#elif defined(Q_OS_MAC)
2023-05-03 11:22:11 -07:00
@@ -70,7 +73,7 @@ void ApplicationUpdater::installUpdate(const Flipper::
2022-11-28 14:08:08 -07:00
#elif defined(Q_OS_LINUX)
const auto fileInfo = versionInfo.fileInfo(QStringLiteral("AppImage"), QStringLiteral("linux/amd64"));
#else
-#error "Unsupported OS"
+ #error "Unsupported OS"
#endif
const auto fileName = QFileInfo(fileInfo.url()).fileName();
2023-05-03 11:22:11 -07:00
@@ -151,6 +154,7 @@ void ApplicationUpdater::installUpdate(const Flipper::
2022-11-28 14:08:08 -07:00
qCWarning(CATEGORY_SELFUPDATES) << "Downloading the application update package...";
2023-05-03 11:22:11 -07:00
setState(Downloading);
2022-11-28 14:08:08 -07:00
}
+#endif
}
2023-05-03 11:22:11 -07:00
void ApplicationUpdater::setState(ApplicationUpdater::State state)
@@ -213,6 +217,7 @@ bool ApplicationUpdater::performUpdate(const QString &
2022-11-28 14:08:08 -07:00
return success;
#else
-#error "Unsupported OS"
+#warning "Unsupported OS"
+ return 1;
#endif
}