Turn on winsparkle update checking support.

Default to ON on Windows for x64 or x86.

Set new appcast URL, this will be in the github pages repo.

We will need to get everything ready for the next release.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2020-02-08 04:23:04 +00:00
parent f1abbc5f83
commit 83614290be
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
2 changed files with 3 additions and 8 deletions

View File

@ -172,12 +172,8 @@ option(ENABLE_FFMPEG "Enable ffmpeg A/V recording" ${FFMPEG_DEFAULT})
set(ONLINEUPDATES_DEFAULT OFF)
if(WIN32 AND (AMD64 OR X86_32))
# currently we do not turn this on until we do more work on this feature
#
# set(ONLINEUPDATES_DEFAULT ON) # use winsparkle
if(WIN32 AND (X64 OR X86))
set(ONLINEUPDATES_DEFAULT ON) # use winsparkle
endif()
option(ENABLE_ONLINEUPDATES "Enable online update checks" ${ONLINEUPDATES_DEFAULT})

View File

@ -205,8 +205,7 @@ static void init_check_for_updates()
{
#ifdef __WXMSW__
wxString version(vbam_version);
//win_sparkle_set_appcast_url("https://github.com/visualboyadvance-m/visualboyadvance-m/data/appcast.xml");
win_sparkle_set_appcast_url("https://raw.githubusercontent.com/visualboyadvance-m/visualboyadvance-m/update-checker/data/appcast.xml");
win_sparkle_set_appcast_url("http://data.vba-m.com/appcast.xml");
win_sparkle_set_app_details(L"visualboyadvance-m", L"VisualBoyAdvance-M", version.wc_str());
win_sparkle_init();
#endif // __WXMSW__