Skip to content

Commit

Permalink
Make the Sparkle compile again, updated to release 2.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
christofmuc committed Jan 4, 2025
1 parent d7f14b2 commit 9eb594d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
7 changes: 7 additions & 0 deletions The-Orm/MacSparkle.mm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
#import <Foundation/Foundation.h>
#import <Sparkle/Sparkle.h>

// 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:
Expand All @@ -33,3 +38,5 @@
{
[d->updater checkForUpdates : nil];
}

#pragma clang diagnostic pop
2 changes: 1 addition & 1 deletion The-Orm/MainComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9eb594d

Please sign in to comment.