From 9eb594dcfef7d80c9501e2484c0d99576997f8ed Mon Sep 17 00:00:00 2001 From: Christof Ruch Date: Sat, 4 Jan 2025 23:44:12 +0100 Subject: [PATCH] Make the Sparkle compile again, updated to release 2.6.4 --- CMakeLists.txt | 2 +- The-Orm/MacSparkle.mm | 7 +++++++ The-Orm/MainComponent.cpp | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a4af8276..bde0b040 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -138,7 +138,7 @@ ELSEIF(APPLE) IF(SPARKLE_UPDATES) FetchContent_Declare( sparkleframework - URL https://github.com/sparkle-project/Sparkle/releases/download/2.0.0/Sparkle-2.0.0.tar.xz + URL https://github.com/sparkle-project/Sparkle/releases/download/2.6.4/Sparkle-2.6.4.tar.xz ) FetchContent_MakeAvailable(sparkleframework) ENDIF() diff --git a/The-Orm/MacSparkle.mm b/The-Orm/MacSparkle.mm index 232910ad..1c2e9de9 100644 --- a/The-Orm/MacSparkle.mm +++ b/The-Orm/MacSparkle.mm @@ -9,6 +9,11 @@ #import #import +// This does not follow the new procedure at https://sparkle-project.org/documentation/programmatic-setup/ yet + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" + class SparkleAutoUpdate::Impl { public: @@ -33,3 +38,5 @@ { [d->updater checkForUpdates : nil]; } + +#pragma clang diagnostic pop diff --git a/The-Orm/MainComponent.cpp b/The-Orm/MainComponent.cpp index 8f97a67f..a5c80e3a 100644 --- a/The-Orm/MainComponent.cpp +++ b/The-Orm/MainComponent.cpp @@ -425,7 +425,7 @@ MainComponent::MainComponent(bool makeYourOwnSize) : #endif #endif #ifdef USE_SPARKLE - { "Check for updates...", { "Check for updates...", [this] { + { "Check for updates...", { "Check for updates...", [] { #ifdef WIN32 win_sparkle_check_update_with_ui(); #endif