From b394a3766099bcb52ab4678026e88967f0fe4f72 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Fri, 3 May 2024 21:51:43 +0800 Subject: [PATCH] debug --- .github/workflows/ci-win.yml | 4 +++- src/Packaging.cmake | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-win.yml b/.github/workflows/ci-win.yml index 416973398f..ea66c941a6 100644 --- a/.github/workflows/ci-win.yml +++ b/.github/workflows/ci-win.yml @@ -99,10 +99,11 @@ jobs: run: | cmake --version call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 - cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_DEFAULT_MAJOR_VERSION=${{matrix.config.qt_major}} -DOPENSSL_EXTRA_LIB_DIR=.\openssl-utils.git\1.1.1j\Win_x64 %GITHUB_WORKSPACE% + cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DQT_DEFAULT_MAJOR_VERSION=${{matrix.config.qt_major}} -DOPENSSL_EXTRA_LIB_DIR=${{runner.workspace}}\build\openssl-utils.git\1.1.1j\Win_x64 %GITHUB_WORKSPACE% cmake --build . cmake --build . --target=deploy cmake --build . --target=pack + cmake --build . --target=install 7z x VNote*.zip -o* dir working-directory: ${{runner.workspace}}/build @@ -121,6 +122,7 @@ jobs: path: ${{runner.workspace}}/build/VNote-${{env.VNOTE_VER}}-win64${{matrix.config.suffix}} - name: Archive Installer + if: ${{!startsWith(matrix.config.qt, '5.15')}} uses: actions/upload-artifact@v2 with: name: VNote-${{env.VNOTE_VER}}-win64${{matrix.config.suffix}}.msi diff --git a/src/Packaging.cmake b/src/Packaging.cmake index 93331464c8..4e8341934e 100644 --- a/src/Packaging.cmake +++ b/src/Packaging.cmake @@ -28,7 +28,7 @@ function(windeployqt target) endif() endif() - message(INFO " debug: ${WINDEPLOYQT_EXECUTABLE}") + message(INFO " debug: windeployqt:${WINDEPLOYQT_EXECUTABLE}") add_custom_target(deploy COMMAND "${CMAKE_COMMAND}" -E remove_directory "${CMAKE_CURRENT_BINARY_DIR}/winqt/" @@ -58,9 +58,11 @@ function(windeployqt target) cmake_path(NORMAL_PATH OPENSSL_LIBS_FILES OUTPUT_VARIABLE OPENSSL_LIBS_FILES) install(FILES ${OPENSSL_LIBS_FILES} DESTINATION "${CMAKE_INSTALL_BINDIR}" OPTIONAL) + message(INFO " debug: OpenSSLExtraLIBDIR:${OPENSSL_EXTRA_LIB_DIR}") file(GLOB OPENSSL_EXTRA_LIB_FILES "${OPENSSL_EXTRA_LIB_DIR}/lib*.dll") cmake_path(NORMAL_PATH OPENSSL_EXTRA_LIB_FILES OUTPUT_VARIABLE OPENSSL_EXTRA_LIB_FILES) - install(FILES ${OPENSSL_EXTRA_LIB_FILES} DESTINATION "${CMAKE_INSTALL_BINDIR}") + message(INFO " debug: OpenSSLExtraLibFiles:${OPENSSL_EXTRA_LIB_FILES}") + install(FILES ${OPENSSL_EXTRA_LIB_FILES} DESTINATION "${CMAKE_INSTALL_BINDIR}" OPTIONAL) set(CMAKE_INSTALL_UCRT_LIBRARIES TRUE) include(InstallRequiredSystemLibraries)