From dc81c25670f6f81c423174b7a5282a6cb597cfca Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Fri, 4 Oct 2024 15:58:11 +0200 Subject: [PATCH] Windows style changed from windowsvista to modernwindows From 6.6.3 to 6.7.0 Load the correct style depending on the QT version --- CMakeLists.txt | 5 +++++ misc/dynamic.wxs.in | 6 ++++++ misc/xca.wxs | 8 +------- release/build-w64.sh | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03e7789d..a494bc13 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,6 +160,11 @@ if (APPLE) elseif(WIN32) set(RUNTIME_DEST ${CMAKE_PROJECT_NAME}-portable-${PROJECT_VERSION}) + if (${QT_VERSION} VERSION_LESS 6.7.0) + set(WINDOWSSTYLE "windowsvistastyle") + else() + set(WINDOWSSTYLE "modernwindowsstyle") + endif() else() diff --git a/misc/dynamic.wxs.in b/misc/dynamic.wxs.in index 20e7ac50..bd3d6f03 100644 --- a/misc/dynamic.wxs.in +++ b/misc/dynamic.wxs.in @@ -29,6 +29,12 @@ + + + + + + diff --git a/misc/xca.wxs b/misc/xca.wxs index 8d8be417..48e26cde 100644 --- a/misc/xca.wxs +++ b/misc/xca.wxs @@ -131,12 +131,6 @@ - - - - - - - + diff --git a/release/build-w64.sh b/release/build-w64.sh index 4c841e11..cf57ff27 100644 --- a/release/build-w64.sh +++ b/release/build-w64.sh @@ -16,7 +16,7 @@ do_openssl() { OSSL="openssl-3.3.2" XCA_DIR="$(cd `dirname $0`/.. && pwd)" TOP_DIR="`dirname $XCA_DIR`" -QT_DIR="$TOP_DIR/QT/6.6.3/mingw_64" +QT_DIR="$TOP_DIR/QT/6.8.0/mingw_64" BUILDDIR="$TOP_DIR/w64-release" INSTALL_DIR="/c/OpenSSL" JOBS=7