diff --git a/.github/workflows/all-builds.yml b/.github/workflows/all-builds.yml index 410caa4..3319da4 100644 --- a/.github/workflows/all-builds.yml +++ b/.github/workflows/all-builds.yml @@ -96,6 +96,16 @@ jobs: cd build cpack -C Release -G NSIS + - name: Upload logs on failure (WIN) + if: failure() + uses: actions/upload-artifact@v4 + with: + name: Build-Logs + path: | + D:\a\qtk\qtk\build\packages\_CPack_Packages\win64\NSIS\NSISOutput.log + D:\a\qtk\qtk\build\CMakeFiles\CMakeOutput.log + D:\a\qtk\qtk\build\CMakeFiles\CMakeError.log + - name: Upload package artifacts (WIN) if: matrix.os == 'windows-latest' uses: actions/upload-artifact@v4 diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index 571fcc5..4abd1e5 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -57,14 +57,18 @@ set( qt_add_executable(qtk_gui ${QTK_GUI_SOURCES}) target_link_libraries(qtk_gui PRIVATE qtk_plugin_library) -set_target_properties(qtk_gui PROPERTIES - WIN32_EXECUTABLE 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 ${QTK_COPYRIGHT} - MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} - MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} -) \ No newline at end of file +if (WIN32) + set_target_properties(qtk_gui PROPERTIES WIN32_EXECUTABLE TRUE) +elseif(APPLE) + set_target_properties( + qtk_gui PROPERTIES + 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 ${QTK_COPYRIGHT} + MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} + MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} + ) +endif()