mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-11-27 00:00:32 +00:00
5a8989bdbe
* pack release builds * changes * test * more * different unzip * different unzip 2 * add pr artifacts action * mm hashes * add gc rom * update linux sh * fix windows linking * give windows release a console * tweaks
30 lines
981 B
CMake
30 lines
981 B
CMake
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
|
|
set(CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY 0)
|
|
set(CPACK_COMPONENTS_ALL "2s2h")
|
|
|
|
if (CPACK_GENERATOR STREQUAL "External")
|
|
list(APPEND CPACK_COMPONENTS_ALL "extractor" "appimage")
|
|
endif()
|
|
|
|
if (CPACK_GENERATOR MATCHES "DEB|RPM")
|
|
# https://unix.stackexchange.com/a/11552/254512
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/ship/bin")#/${CMAKE_PROJECT_VERSION}")
|
|
set(CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY 0)
|
|
elseif (CPACK_GENERATOR MATCHES "ZIP")
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX "")
|
|
endif()
|
|
|
|
if (CPACK_GENERATOR MATCHES "External")
|
|
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
|
|
SET(CPACK_MONOLITHIC_INSTALL 1)
|
|
set(CPACK_PACKAGING_INSTALL_PREFIX "/usr/bin")
|
|
endif()
|
|
|
|
if (CPACK_GENERATOR MATCHES "Bundle")
|
|
set(CPACK_BUNDLE_NAME "2s2h")
|
|
set(CPACK_BUNDLE_PLIST "macosx/Info.plist")
|
|
set(CPACK_BUNDLE_ICON "macosx/2s2h.icns")
|
|
set(CPACK_BUNDLE_STARTUP_COMMAND "macosx/2s2h-macos.sh")
|
|
set(CPACK_BUNDLE_APPLE_CERT_APP "-")
|
|
endif()
|