mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
CI/cmake: Update Sparkle to 2.3.2
This commit is contained in:
@@ -138,10 +138,13 @@ macro(setup_obs_project)
|
||||
endif()
|
||||
|
||||
if(BUILD_FOR_DISTRIBUTION OR DEFINED ENV{CI})
|
||||
set_option(ENABLE_SPARKLE_UPDATER ON)
|
||||
set_option(ENABLE_RTMPS ON)
|
||||
endif()
|
||||
|
||||
if(DEFINED SPARKLE_APPCAST_URL AND DEFINED SPARKLE_PUBLIC_KEY)
|
||||
set_option(ENABLE_SPARKLE_UPDATER ON)
|
||||
endif()
|
||||
|
||||
set(CPACK_PACKAGE_NAME "OBS")
|
||||
set(CPACK_PACKAGE_VENDOR "${OBS_WEBSITE}")
|
||||
set(CPACK_GENERATOR "DragNDrop")
|
||||
|
||||
@@ -360,7 +360,7 @@ function(setup_obs_bundle target)
|
||||
POST_BUILD
|
||||
COMMAND
|
||||
/bin/sh -c
|
||||
"plutil -replace SUFeedURL -string https://obsproject.com/osx_update/stable/updates_${CMAKE_OSX_ARCHITECTURES}.xml \"$<TARGET_BUNDLE_CONTENT_DIR:${target}>/Info.plist\""
|
||||
"plutil -replace SUFeedURL -string ${SPARKLE_APPCAST_URL} \"$<TARGET_BUNDLE_CONTENT_DIR:${target}>/Info.plist\""
|
||||
VERBATIM)
|
||||
|
||||
add_custom_command(
|
||||
@@ -368,19 +368,9 @@ function(setup_obs_bundle target)
|
||||
POST_BUILD
|
||||
COMMAND
|
||||
/bin/sh -c
|
||||
"plutil -replace SUPublicDSAKeyFile -string OBSPublicDSAKey.pem \"$<TARGET_BUNDLE_CONTENT_DIR:${target}>/Info.plist\""
|
||||
"plutil -replace SUPublicEDKey -string \"${SPARKLE_PUBLIC_KEY}\" \"$<TARGET_BUNDLE_CONTENT_DIR:${target}>/Info.plist\""
|
||||
VERBATIM)
|
||||
|
||||
target_sources(
|
||||
${target}
|
||||
PRIVATE "${CMAKE_SOURCE_DIR}/cmake/bundle/macOS/OBSPublicDSAKey.pem")
|
||||
set_source_files_properties(
|
||||
"${CMAKE_SOURCE_DIR}/cmake/bundle/macOS/OBSPublicDSAKey.pem"
|
||||
PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
|
||||
source_group(
|
||||
"Resources"
|
||||
FILES "${CMAKE_SOURCE_DIR}/cmake/bundle/macOS/OBSPublicDSAKey.pem")
|
||||
|
||||
install(
|
||||
DIRECTORY ${SPARKLE}
|
||||
DESTINATION $<TARGET_FILE_BASE_NAME:${target}>.app/Contents/Frameworks
|
||||
|
||||
Reference in New Issue
Block a user