mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-10 11:35:19 -05:00
7e9efeeadb
* parse sohver arg and store version file in otr * parse args for soh.otr gen only * pass soh version from built in extractor * update launch scripts, cmake and extract steps to pass soh version * check otr versions and error or ask to regenerate * add wiiu core header for osfatal * review feedback * remove soh dummy version for lus change instead * only configure linux script for linux * change lus commit * rename soh version to port version * fix submodules * bump OTRExporter * clean up error messages for switch/wiiu * strings not char array * typo * init wiiu before otr detection * Add message for mac/linux extraction * remove unneeded exits * change version number types to u16 to fix 32bit devices * bump otrexporter
30 lines
998 B
CMake
30 lines
998 B
CMake
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
|
|
set(CPACK_COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY 0)
|
|
set(CPACK_COMPONENTS_ALL "ship" "extractor" "appimage")
|
|
|
|
if (NOT CPACK_GENERATOR STREQUAL "External")
|
|
list(REMOVE_ITEM CPACK_COMPONENTS_ALL "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 "soh")
|
|
set(CPACK_BUNDLE_PLIST "macosx/Info.plist")
|
|
set(CPACK_BUNDLE_ICON "macosx/soh.icns")
|
|
set(CPACK_BUNDLE_STARTUP_COMMAND "macosx/soh-macos.sh")
|
|
set(CPACK_BUNDLE_APPLE_CERT_APP "-")
|
|
endif()
|