File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -670,6 +670,13 @@ add_custom_target(CreateOSXIcons
670670 )
671671 add_dependencies (${PROJECT_NAME } CreateOSXIcons )
672672 configure_file ("${CMAKE_SOURCE_DIR } /Info.plist" "${CMAKE_BINARY_DIR } /Info.plist" COPYONLY )
673+ INSTALL (TARGETS ${PROJECT_NAME } DESTINATION ../MacOS COMPONENT Ghostship)
674+ # Rename the installed soh binary to drop the macos suffix
675+ # INSTALL(CODE "FILE(RENAME \${CMAKE_INSTALL_PREFIX}/../MacOS/Ghostship-macos \${CMAKE_INSTALL_PREFIX}/../MacOS/Ghostship)")
676+ # install(CODE "
677+ # include(BundleUtilities)
678+ # fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/../MacOS/Ghostship\" \"\" \"${dirs}\")
679+ # ")
673680endif ()
674681
675682set_property (TARGET ${PROJECT_NAME } PROPERTY APPIMAGE_DESKTOP_FILE_TERMINAL YES )
Original file line number Diff line number Diff line change 3333 <string >public.app-category.games </string >
3434 <key >LSMinimumSystemVersion </key >
3535 <string >10.15 </string >
36+ <key >LSEnvironment </key >
37+ <dict >
38+ <key >SHIP_HOME </key >
39+ <string >~/Library/Application Support/com.ghostship </string >
40+ </dict >
3641 <key >LSArchitecturePriority </key >
3742 <array >
3843 <string >arm64 </string >
Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/bin")
2121endif ()
2222
2323if (CPACK_GENERATOR MATCHES "Bundle" )
24- set (CPACK_BUNDLE_NAME "" )
25- set (CPACK_BUNDLE_PLIST "macosx/ Info.plist" )
26- set (CPACK_BUNDLE_ICON "macosx/.icns" )
24+ set (CPACK_BUNDLE_NAME "Ghostship " )
25+ set (CPACK_BUNDLE_PLIST "Info.plist" )
26+ set (CPACK_BUNDLE_ICON "macosx/Ghostship .icns" )
2727 # set(CPACK_BUNDLE_STARTUP_COMMAND "macosx/-macos.sh")
2828 set (CPACK_BUNDLE_APPLE_CERT_APP "-" )
2929endif ()
You can’t perform that action at this time.
0 commit comments