diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-07-27 09:37:56 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-07-27 09:37:56 +0200 |
commit | b1aa9e584624a0732dd55fc6c459524a8abfe6ba (patch) | |
tree | 7930edeb43d4fec26f3d36c54e810fb7022e48ce /CMakeLists.txt | |
parent | 51bfda937d47837ed426150ed6f43a60b4ca0ce1 (diff) | |
download | PrismLauncher-b1aa9e584624a0732dd55fc6c459524a8abfe6ba.tar.gz PrismLauncher-b1aa9e584624a0732dd55fc6c459524a8abfe6ba.tar.bz2 PrismLauncher-b1aa9e584624a0732dd55fc6c459524a8abfe6ba.zip |
refactor: introduce internal Launcher_ENABLE_UPDATER variable
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b4910d1b..05ada3b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -318,6 +318,8 @@ add_subdirectory(program_info) ####################################### Install layout ####################################### +set(Launcher_ENABLE_UPDATER NO) + if(NOT (UNIX AND APPLE)) # Install "portable.txt" if selected component is "portable" install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/${Launcher_Portable_File}" DESTINATION "." COMPONENT portable EXCLUDE_FROM_ALL) @@ -353,6 +355,10 @@ if(UNIX AND APPLE) # directories to look for dependencies set(DIRS ${QT_LIBS_DIR} ${QT_LIBEXECS_DIR} ${CMAKE_LIBRARY_OUTPUT_DIRECTORY} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} ${MACOSX_SPARKLE_DIR}) + if(NOT MACOSX_SPARKLE_UPDATE_PUBLIC_KEY STREQUAL "" AND NOT MACOSX_SPARKLE_UPDATE_FEED_URL STREQUAL "") + set(Launcher_ENABLE_UPDATER YES) + endif() + # install as bundle set(INSTALL_BUNDLE "full" CACHE STRING "Use fixup_bundle to bundle dependencies") |