Skip to content

Commit 74f33d8

Browse files
inspectredcKiritoDv
authored andcommitted
temp progress
1 parent ef62270 commit 74f33d8

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
# ")
673680
endif()
674681

675682
set_property(TARGET ${PROJECT_NAME} PROPERTY APPIMAGE_DESKTOP_FILE_TERMINAL YES)

Info.plist

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@
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>

cmake/configure-packaging.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/bin")
2121
endif()
2222

2323
if (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 "-")
2929
endif()

0 commit comments

Comments
 (0)