OSX packaging

This commit is contained in:
Shaun Reed 2023-01-15 17:50:50 -05:00
parent cfefc49c53
commit baa2ed1e17
4 changed files with 14 additions and 2 deletions

View File

@ -40,6 +40,12 @@ jobs:
cmake -B build/ ${{ matrix.cmake }} -DQTK_UPDATE_SUBMODULES=ON cmake -B build/ ${{ matrix.cmake }} -DQTK_UPDATE_SUBMODULES=ON
cmake --build build/ cmake --build build/
- name: OSX Stuff
if: matrix.os == 'macos-lates'
shell: bash
run: |
ls build/
- name: Package Qtk - name: Package Qtk
shell: bash shell: bash
run: | run: |

View File

@ -84,6 +84,7 @@ if (QTK_PREFIX_QTCREATOR)
endif() endif()
message(STATUS "[Qtk] CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}") message(STATUS "[Qtk] CMAKE_INSTALL_PREFIX=${CMAKE_INSTALL_PREFIX}")
set(QTK_RESOURCES "${CMAKE_SOURCE_DIR}/resources") set(QTK_RESOURCES "${CMAKE_SOURCE_DIR}/resources")
set(QTK_OSX_ICONS ${CMAKE_SOURCE_DIR}/resources/icons/osx/kilroy.icns)
# Print all QTK options and their values. # Print all QTK options and their values.
get_cmake_property(VAR_NAMES VARIABLES) get_cmake_property(VAR_NAMES VARIABLES)

View File

@ -46,8 +46,8 @@ set(CPACK_PACKAGE_DIRECTORY packages/)
# OSX # OSX
set(CPACK_BUNDLE_NAME Qtk) set(CPACK_BUNDLE_NAME Qtk)
#set(CPACK_BUNDLE_PLIST ) set(CPACK_BUNDLE_PLIST ${CMAKE_BINARY_DIR}/Info.plist)
#set(CPACK_BUNDLE_ICON ) set(CPACK_BUNDLE_ICON ${QTK_OSX_ICONS})
if(WIN32) if(WIN32)
set(CPACK_SOURCE_GENERATOR ZIP) set(CPACK_SOURCE_GENERATOR ZIP)
else() else()

View File

@ -91,6 +91,11 @@ set_target_properties(
qtk_main PROPERTIES qtk_main PROPERTIES
WIN32_EXECUTABLE TRUE WIN32_EXECUTABLE TRUE
MACOSX_BUNDLE TRUE MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_BUNDLE_NAME Qtk
MACOSX_BUNDLE_ICON_FILE ${QTK_OSX_ICONS}
MACOSX_BUNDLE_GUI_IDENTIFIER ${CMAKE_PROJECT_NAME}
MACOSX_BUNDLE_INFO_STRING ${CMAKE_PROJECT_DESCRIPTION}
MACOSX_BUNDLE_COPYRIGHT "All Content (c) 2023 Shaun Reed, all rights reserved"
MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION}
MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}
) )