diff options
author | Kevin Bowling <kbowling@FreeBSD.org> | 2022-11-28 14:08:08 -0700 |
---|---|---|
committer | Kevin Bowling <kbowling@FreeBSD.org> | 2022-11-28 14:08:08 -0700 |
commit | 0453380c15a58b9384f199e492133ba7f79e071a (patch) | |
tree | 76280b25c43be366c5740f74b698fa30e075c3d2 /sysutils/qflipper/files/patch-application_applicationupdater.cpp | |
parent | devel/py-virtualenv: Update to 20.17.0 (diff) |
sysutils/qflipper: New port
PC support for Flipper Zero
Diffstat (limited to 'sysutils/qflipper/files/patch-application_applicationupdater.cpp')
-rw-r--r-- | sysutils/qflipper/files/patch-application_applicationupdater.cpp | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/sysutils/qflipper/files/patch-application_applicationupdater.cpp b/sysutils/qflipper/files/patch-application_applicationupdater.cpp new file mode 100644 index 000000000000..2dbc1d0f5d33 --- /dev/null +++ b/sysutils/qflipper/files/patch-application_applicationupdater.cpp @@ -0,0 +1,38 @@ +--- application/applicationupdater.cpp.orig 2022-11-27 21:54:15 UTC ++++ application/applicationupdater.cpp +@@ -57,6 +57,9 @@ void ApplicationUpdater::installUpdate(const Flipper:: + + 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) +@@ -64,7 +67,7 @@ void ApplicationUpdater::installUpdate(const Flipper:: + #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(); +@@ -145,6 +148,7 @@ void ApplicationUpdater::installUpdate(const Flipper:: + qCWarning(CATEGORY_SELFUPDATES) << "Downloading the application update package..."; + setState(State::Downloading); + } ++#endif + } + + void ApplicationUpdater::setState(State state) +@@ -207,6 +211,7 @@ bool ApplicationUpdater::performUpdate(const QString & + return success; + + #else +-#error "Unsupported OS" ++#warning "Unsupported OS" ++ return 1; + #endif + } |