diff options
author | Kenneth Chew <kenneth.c0@protonmail.com> | 2022-05-19 20:22:45 -0400 |
---|---|---|
committer | Kenneth Chew <kenneth.c0@protonmail.com> | 2022-05-19 20:22:45 -0400 |
commit | f3c72f4f0888aa16793354890055e17df07084fc (patch) | |
tree | d1d1216f720071139e018e210dab545999da5325 /launcher/CMakeLists.txt | |
parent | 05cd30ac06b67ebc594773fc7e7ccf110fc336a3 (diff) | |
download | PrismLauncher-f3c72f4f0888aa16793354890055e17df07084fc.tar.gz PrismLauncher-f3c72f4f0888aa16793354890055e17df07084fc.tar.bz2 PrismLauncher-f3c72f4f0888aa16793354890055e17df07084fc.zip |
Actually install the full `Sparkle.framework`
CMake's `fixup_bundle` did not copy everything in the framework, which caused the app to crash when updating. Oops.
Diffstat (limited to 'launcher/CMakeLists.txt')
-rw-r--r-- | launcher/CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt index 51f3dc36..0be10682 100644 --- a/launcher/CMakeLists.txt +++ b/launcher/CMakeLists.txt @@ -1035,6 +1035,13 @@ install(TARGETS ${Launcher_Name} FRAMEWORK DESTINATION ${FRAMEWORK_DEST_DIR} COMPONENT Runtime ) +if (UNIX AND APPLE) + # Add Sparkle updater + # It has to be copied here instead of just allowing fixup_bundle to install it, otherwise essential parts of + # the framework aren't installed + install(DIRECTORY ${MACOSX_SPARKLE_DIR}/Sparkle.framework DESTINATION ${FRAMEWORK_DEST_DIR} USE_SOURCE_PERMISSIONS) +endif() + #### The bundle mess! #### # Bundle utilities are used to complete the portable packages - they add all the libraries that would otherwise be missing on the target system. # NOTE: it seems that this absolutely has to be here, and nowhere else. |