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:
derrod
2023-02-19 01:35:56 +01:00
committed by Patrick Heyer
parent 12a27d8b99
commit 9d71d2f7fd
4 changed files with 2 additions and 10 deletions
-4
View File
@@ -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
View File
@@ -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)
-4
View File
@@ -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")
+1 -1
View File
@@ -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