Use macOS 10.10 Sparkle
This commit is contained in:
parent
e49cce5b9e
commit
3d8ed512cf
|
@ -808,8 +808,8 @@ endif()
|
||||||
if(APPLE AND ENABLE_ONLINEUPDATES)
|
if(APPLE AND ENABLE_ONLINEUPDATES)
|
||||||
include(FetchContent)
|
include(FetchContent)
|
||||||
FetchContent_Declare(Sparkle
|
FetchContent_Declare(Sparkle
|
||||||
URL "https://github.com/sparkle-project/Sparkle/releases/download/2.7.1/Sparkle-2.7.1.tar.xz"
|
URL "https://github.com/andyvand/Sparkle/releases/download/Release/Sparkle-2.7.1-MacOSX10.10.tar.xz"
|
||||||
URL_HASH SHA256=f7385c3e8c70c37e5928939e6246ac9070757b4b37a5cb558afa1b0d5ef189de
|
URL_HASH SHA256=2d2419118c2ee8fe6e740a953b74cfa3b367606e4bab3fe0ab63332a5324ac5f
|
||||||
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
|
DOWNLOAD_EXTRACT_TIMESTAMP TRUE
|
||||||
)
|
)
|
||||||
FetchContent_MakeAvailable(Sparkle)
|
FetchContent_MakeAvailable(Sparkle)
|
||||||
|
|
|
@ -2,20 +2,16 @@
|
||||||
|
|
||||||
#include "wx/autoupdater/macos/sparkle-wrapper.h"
|
#include "wx/autoupdater/macos/sparkle-wrapper.h"
|
||||||
|
|
||||||
extern bool is_macosx_1013_or_newer();
|
|
||||||
|
|
||||||
SparkleWrapper autoupdater;
|
SparkleWrapper autoupdater;
|
||||||
|
|
||||||
void initAutoupdater()
|
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()
|
void checkUpdatesUi()
|
||||||
{
|
{
|
||||||
if (is_macosx_1013_or_newer())
|
|
||||||
autoupdater.checkForUpdatesUi();
|
autoupdater.checkForUpdatesUi();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue