mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-24 02:34:23 -05:00
cmake: Remove ENABLE_SPARKLE_UPDATER option
Since public key and appcast are now options we simply rely on those to decide whether or not to enable Sparkle.
This commit is contained in:
@@ -52,10 +52,6 @@ if(OS_WINDOWS)
|
||||
"Build a multiarch installer (needs to run independently after both archs have compiled) (Windows)"
|
||||
OFF)
|
||||
|
||||
elseif(OS_MACOS)
|
||||
option(ENABLE_SPARKLE_UPDATER "Enable Sparkle framework for updates (macOS)"
|
||||
OFF)
|
||||
|
||||
elseif(OS_POSIX)
|
||||
option(LINUX_PORTABLE "Build portable version (Linux)" OFF)
|
||||
option(USE_XDG "Utilize XDG Base Directory Specification (Linux)" ON)
|
||||
|
||||
+1
-1
@@ -445,7 +445,7 @@ elseif(OS_MACOS)
|
||||
update/shared-update.cpp update/shared-update.hpp
|
||||
update/update-helpers.cpp update/update-helpers.hpp)
|
||||
|
||||
if(ENABLE_SPARKLE_UPDATER)
|
||||
if(DEFINED SPARKLE_APPCAST_URL AND DEFINED SPARKLE_PUBLIC_KEY)
|
||||
find_library(SPARKLE Sparkle)
|
||||
mark_as_advanced(SPARKLE)
|
||||
|
||||
|
||||
@@ -141,10 +141,6 @@ macro(setup_obs_project)
|
||||
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")
|
||||
|
||||
@@ -354,7 +354,7 @@ function(setup_obs_bundle target)
|
||||
set(_CODESIGN_ENTITLEMENTS \"${CMAKE_SOURCE_DIR}/cmake/bundle/macOS\")"
|
||||
COMPONENT obs_resources)
|
||||
|
||||
if(ENABLE_SPARKLE_UPDATER)
|
||||
if(DEFINED SPARKLE_APPCAST_URL AND DEFINED SPARKLE_PUBLIC_KEY)
|
||||
add_custom_command(
|
||||
TARGET ${target}
|
||||
POST_BUILD
|
||||
|
||||
Reference in New Issue
Block a user