From 74f33d8294bf9020ccdbbfca9929872cd952b882 Mon Sep 17 00:00:00 2001
From: inspectredc <78732756+inspectredc@users.noreply.github.com>
Date: Sat, 17 Jan 2026 01:56:17 +0000
Subject: [PATCH] temp progress
---
CMakeLists.txt | 7 +++++++
Info.plist | 5 +++++
cmake/configure-packaging.cmake | 6 +++---
3 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 89517f1c..abd60b30 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -670,6 +670,13 @@ add_custom_target(CreateOSXIcons
)
add_dependencies(${PROJECT_NAME} CreateOSXIcons)
configure_file("${CMAKE_SOURCE_DIR}/Info.plist" "${CMAKE_BINARY_DIR}/Info.plist" COPYONLY)
+INSTALL(TARGETS ${PROJECT_NAME} DESTINATION ../MacOS COMPONENT Ghostship)
+# Rename the installed soh binary to drop the macos suffix
+# INSTALL(CODE "FILE(RENAME \${CMAKE_INSTALL_PREFIX}/../MacOS/Ghostship-macos \${CMAKE_INSTALL_PREFIX}/../MacOS/Ghostship)")
+# install(CODE "
+# include(BundleUtilities)
+# fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/../MacOS/Ghostship\" \"\" \"${dirs}\")
+# ")
endif()
set_property(TARGET ${PROJECT_NAME} PROPERTY APPIMAGE_DESKTOP_FILE_TERMINAL YES)
diff --git a/Info.plist b/Info.plist
index 99041b1d..f4eb3ed3 100644
--- a/Info.plist
+++ b/Info.plist
@@ -33,6 +33,11 @@
public.app-category.games
LSMinimumSystemVersion
10.15
+ LSEnvironment
+
+ SHIP_HOME
+ ~/Library/Application Support/com.ghostship
+
LSArchitecturePriority
arm64
diff --git a/cmake/configure-packaging.cmake b/cmake/configure-packaging.cmake
index 062d129a..8ce66c2f 100644
--- a/cmake/configure-packaging.cmake
+++ b/cmake/configure-packaging.cmake
@@ -21,9 +21,9 @@ set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/bin")
endif()
if (CPACK_GENERATOR MATCHES "Bundle")
- set(CPACK_BUNDLE_NAME "")
- set(CPACK_BUNDLE_PLIST "macosx/Info.plist")
- set(CPACK_BUNDLE_ICON "macosx/.icns")
+ set(CPACK_BUNDLE_NAME "Ghostship")
+ set(CPACK_BUNDLE_PLIST "Info.plist")
+ set(CPACK_BUNDLE_ICON "macosx/Ghostship.icns")
# set(CPACK_BUNDLE_STARTUP_COMMAND "macosx/-macos.sh")
set(CPACK_BUNDLE_APPLE_CERT_APP "-")
endif()
\ No newline at end of file