File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -680,12 +680,12 @@ INSTALL(FILES ${CMAKE_BINARY_DIR}/gamecontrollerdb.txt DESTINATION ../MacOS COMP
680680INSTALL (FILES ${CMAKE_BINARY_DIR } /ghostship.o2r DESTINATION ../Resources COMPONENT Ghostship)
681681INSTALL (FILES ${CMAKE_BINARY_DIR } /config.yml DESTINATION ../Resources COMPONENT Ghostship)
682682INSTALL (DIRECTORY ${CMAKE_BINARY_DIR } /assets/ DESTINATION ../Resources/assets COMPONENT Ghostship)
683- # Rename the installed soh binary to drop the macos suffix
684- # INSTALL(CODE "FILE(RENAME \${CMAKE_INSTALL_PREFIX}/../MacOS/Ghostship-macos \${CMAKE_INSTALL_PREFIX}/../MacOS/Ghostship)")
685- # install(CODE "
686- # include(BundleUtilities)
687- # fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/../MacOS/Ghostship\" \"\" \"${dirs}\")
688- # ")
683+
684+ # Fix bundle to include and relink all dependencies
685+ install (CODE "
686+ include(BundleUtilities)
687+ fixup_bundle(\"\$ {CMAKE_INSTALL_PREFIX}/../MacOS/Ghostship\" \"\" \" ${dirs} \" )
688+ " )
689689endif ()
690690
691691set_property (TARGET ${PROJECT_NAME } PROPERTY APPIMAGE_DESKTOP_FILE_TERMINAL YES )
You can’t perform that action at this time.
0 commit comments