Changeset - r24456:3db6bc1e31b8
[Not reviewed]
master
1 2 0
Patric Stout - 3 years ago 2020-12-12 15:29:09
truebrain@openttd.org
Fix: [bundle] custom launch.sh is no longer required for Mac OS

Co-authored-by: Owen Rudge <owen@owenrudge.net>
3 files changed with 6 insertions and 11 deletions:
0 comments (0 inline, 0 general)
cmake/InstallAndPackage.cmake
Show inline comments
 
@@ -7,7 +7,11 @@ if(OPTION_INSTALL_FHS)
 
    set(DOCS_DESTINATION_DIR "${CMAKE_INSTALL_DOCDIR}")
 
    set(MAN_DESTINATION_DIR "${CMAKE_INSTALL_MANDIR}")
 
else()
 
    set(BINARY_DESTINATION_DIR ".")
 
    if(APPLE)
 
        set(BINARY_DESTINATION_DIR "../MacOS")
 
    else()
 
        set(BINARY_DESTINATION_DIR ".")
 
    endif()
 
    set(DATA_DESTINATION_DIR ".")
 
    set(DOCS_DESTINATION_DIR ".")
 
    set(MAN_DESTINATION_DIR ".")
cmake/PackageBundle.cmake
Show inline comments
 
@@ -3,7 +3,6 @@ string(TIMESTAMP CURRENT_YEAR "%Y")
 
set(CPACK_BUNDLE_NAME "OpenTTD")
 
set(CPACK_BUNDLE_ICON "${CMAKE_SOURCE_DIR}/os/macosx/openttd.icns")
 
set(CPACK_BUNDLE_PLIST "${CMAKE_CURRENT_BINARY_DIR}/Info.plist")
 
set(CPACK_BUNDLE_STARTUP_COMMAND "${CMAKE_SOURCE_DIR}/os/macosx/launch.sh")
 
set(CPACK_DMG_BACKGROUND_IMAGE "${CMAKE_SOURCE_DIR}/os/macosx/splash.png")
 
set(CPACK_DMG_FORMAT "UDBZ")
 

	
 
@@ -20,7 +19,7 @@ install(
 
    "
 
        include(BundleUtilities)
 
        set(BU_CHMOD_BUNDLE_ITEMS TRUE)
 
        fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/openttd\"  \"\" \"\")
 
        fixup_bundle(\"\${CMAKE_INSTALL_PREFIX}/../MacOS/openttd\"  \"\" \"\")
 
    "
 
    DESTINATION .
 
    COMPONENT Runtime)
os/macosx/launch.sh
Show inline comments
 
deleted file
0 comments (0 inline, 0 general)