From 13854135a97ba8229c9f0111ca97ec6d7054edd3 Mon Sep 17 00:00:00 2001 From: Rafael Kitover Date: Tue, 29 Sep 2020 14:13:26 -0700 Subject: [PATCH] Write CFBundleShortVersionString to Info.plist. CFBundleVersion is already being written since denisfa's Sparkle changes. - Fix #750. Signed-off-by: Rafael Kitover --- src/wx/CMakeLists.txt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/wx/CMakeLists.txt b/src/wx/CMakeLists.txt index 66669dde..59d13aa6 100644 --- a/src/wx/CMakeLists.txt +++ b/src/wx/CMakeLists.txt @@ -919,17 +919,19 @@ if(APPLE AND ENABLE_ONLINEUPDATES) # The following commands *should* be run to make sure Sparkle is not going # to bug randomly (version=1.23) set(CCS2 cp -a ${SPARKLE_FRAMEWORK} ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Frameworks/Sparkle.framework) - set(CCS3 defaults write ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Info.plist CFBundleVersion -string "${VERSION}") - set(CCS4 defaults write ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Info.plist SUEnableAutomaticChecks -bool YES) - #set(CCS5 defaults write ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Info.plist SUPublicEDKey -string "${PUBLIC_KEY}") - set(CCS6 defaults write ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Info.plist SUFeedURL -string "${APPCAST_URL}") + set(CCS3 defaults write ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Info.plist CFBundleVersion -string "${VERSION}") + set(CCS4 defaults write ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Info.plist CFBundleShortVersionString -string "${VERSION}") + set(CCS5 defaults write ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Info.plist SUEnableAutomaticChecks -bool YES) + #set(CCS6 defaults write ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Info.plist SUPublicEDKey -string "${PUBLIC_KEY}") + set(CCS7 defaults write ${CMAKE_BINARY_DIR}/visualboyadvance-m.app/Contents/Info.plist SUFeedURL -string "${APPCAST_URL}") add_custom_command(TARGET visualboyadvance-m POST_BUILD COMMAND ${CCS1} COMMAND ${CCS2} COMMAND ${CCS3} COMMAND ${CCS4} - #COMMAND ${CCS5} - COMMAND ${CCS6} + COMMAND ${CCS5} + #COMMAND ${CCS6} + COMMAND ${CCS7} ) TARGET_LINK_LIBRARIES(visualboyadvance-m ${SPARKLE_FRAMEWORK})