From 3d8ed512cf1f4bffdc078326574830a21d92c412 Mon Sep 17 00:00:00 2001 From: Andy Vandijck Date: Wed, 9 Jul 2025 16:13:22 +0200 Subject: [PATCH] Use macOS 10.10 Sparkle --- src/wx/CMakeLists.txt | 4 ++-- src/wx/autoupdater/macos/autoupdater.cpp | 8 ++------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 24384f2d..83d76eda 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -808,8 +808,8 @@ endif() if(APPLE AND ENABLE_ONLINEUPDATES) include(FetchContent) FetchContent_Declare(Sparkle - URL "https://github.com/sparkle-project/Sparkle/releases/download/2.7.1/Sparkle-2.7.1.tar.xz" - URL_HASH SHA256=f7385c3e8c70c37e5928939e6246ac9070757b4b37a5cb558afa1b0d5ef189de + URL "https://github.com/andyvand/Sparkle/releases/download/Release/Sparkle-2.7.1-MacOSX10.10.tar.xz" + URL_HASH SHA256=2d2419118c2ee8fe6e740a953b74cfa3b367606e4bab3fe0ab63332a5324ac5f DOWNLOAD_EXTRACT_TIMESTAMP TRUE ) FetchContent_MakeAvailable(Sparkle) diff --git a/src/wx/autoupdater/macos/autoupdater.cpp b/src/wx/autoupdater/macos/autoupdater.cpp index aae0d20d..cf8f27ef 100644 --- a/src/wx/autoupdater/macos/autoupdater.cpp +++ b/src/wx/autoupdater/macos/autoupdater.cpp @@ -2,21 +2,17 @@ #include "wx/autoupdater/macos/sparkle-wrapper.h" -extern bool is_macosx_1013_or_newer(); - SparkleWrapper autoupdater; void initAutoupdater() { - if (is_macosx_1013_or_newer()) - autoupdater.addAppcastURL("https://data.visualboyadvance-m.org/appcast.xml"); + autoupdater.addAppcastURL("https://data.visualboyadvance-m.org/appcast.xml"); } void checkUpdatesUi() { - if (is_macosx_1013_or_newer()) - autoupdater.checkForUpdatesUi(); + autoupdater.checkForUpdatesUi(); }