Skip to content

Commit b76d06f

Browse files
committed
Update Qt 6.9.2 and OpenSSL 3.5.2
IB-8585 Signed-off-by: Raul Metsma <raul@metsma.ee>
1 parent 2b48d57 commit b76d06f

File tree

13 files changed

+48
-31
lines changed

13 files changed

+48
-31
lines changed

.github/workflows/build.yml

Lines changed: 34 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,36 @@ jobs:
2626
path: libdigidocpp-pkg
2727
repo: open-eid/libdigidocpp
2828
- name: Install dependencies
29-
env:
30-
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: YES
3129
run: |
3230
brew install flatbuffers
33-
HASH=($(shasum prepare_osx_build_environment.sh))
3431
curl -O -L -s https://installer.id.ee/media/github/opensc_0.26.1.pkg
35-
curl -O -L -s https://installer.id.ee/media/github/${HASH}.zip
3632
sudo installer -verboseR -pkg libdigidocpp-pkg/build/macos/libdigidocpp*.pkg -target /
3733
sudo installer -verboseR -pkg opensc_*.pkg -target /
38-
sudo unzip -qq -d /Library/Developer ${HASH}.zip
3934
rm -rf libdigidocpp-pkg
35+
- name: Cache libraries
36+
uses: actions/cache@v4
37+
with:
38+
path: cache
39+
key: vcpkg-macOS-${{ hashFiles('prepare_osx_build_environment.sh') }}
40+
- name: Build libraries
41+
run: |
42+
sudo mkdir -p cache/Qt-6.9.2-OpenSSL
43+
sudo ./prepare_osx_build_environment.sh -p cache
44+
- name: Install Qt
45+
uses: jurplel/install-qt-action@v4
46+
with:
47+
version: 6.9.2
48+
arch: clang_64
4049
- name: Build
4150
run: |
42-
QT_DIR=$(ls -d /Library/Developer/Qt-*-OpenSSL | tail -n 1)
4351
cmake "-GNinja" \
44-
-DCMAKE_PREFIX_PATH=${QT_DIR} \
45-
-DOPENSSL_ROOT_DIR=/Library/Developer/OpenSSL \
46-
-DLDAP_ROOT=/Library/Developer/OpenLDAP \
52+
-DOPENSSL_ROOT_DIR=${PWD}/cache/OpenSSL \
53+
-DLDAP_ROOT=${PWD}/cache/OpenLDAP \
4754
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -B build -S .
48-
cmake --build build --target zipdebug macdeployqt zip
55+
cmake --build build
56+
cmake --build build --target zipdebug
57+
cmake --build build --target macdeployqt
58+
cmake --build build --target zip
4959
- name: Archive artifacts
5060
uses: actions/upload-artifact@v4
5161
with:
@@ -150,25 +160,32 @@ jobs:
150160
run: |
151161
Rename-Item "libdigidocpp*.msi" libdigidocpp.msi
152162
msiexec /qn /i libdigidocpp.msi
163+
- name: Cache vcpkg
164+
uses: actions/cache@v4
165+
with:
166+
path: ${{ github.workspace }}/vcpkg_cache
167+
key: vcpkg-${{ matrix.vcver }}-${{ hashFiles('.github/workflows/*', 'vcpkg.json') }}
153168
- name: Prepare vcpkg
154-
uses: lukka/run-vcpkg@v7
169+
uses: lukka/run-vcpkg@v11
155170
with:
156-
vcpkgArguments: openssl zlib flatbuffers
157-
vcpkgGitCommitId: 031ad89ce6c575df35a8e58707ad2c898446c63e
158-
vcpkgTriplet: x64-windows
171+
vcpkgGitCommitId: 98e7cd3a7ba579efc543f8854af800d033031eae
172+
vcpkgJsonGlob: ./vcpkg.json
173+
runVcpkgInstall: true
174+
env:
175+
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
159176
- name: Install Qt
160177
uses: jurplel/install-qt-action@v4
161178
with:
162-
version: 6.9.1
179+
version: 6.9.2
163180
arch: win64_msvc2022_64
164181
- name: Setup dev env
165182
uses: ilammy/msvc-dev-cmd@v1
166183
with:
167184
arch: x64
168185
- name: Install WiX
169186
run: |
170-
dotnet tool install -g wix --version 6.0.1
171-
wix extension -g add WixToolset.UI.wixext/6.0.1
187+
dotnet tool install -g wix --version 6.0.2
188+
wix extension -g add WixToolset.UI.wixext/6.0.2
172189
- name: Build
173190
run: |
174191
cmake "-GNinja" -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo `

client/CMakeLists.txt

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE
3434
${WIDGETS}
3535
images/images.qrc
3636
fonts/fonts.qrc
37+
mac/Info.plist.cmake
3738
common_enums.h
3839
main.cpp
3940
Application.cpp
@@ -160,16 +161,9 @@ foreach(SCHEMA ${SCHEMAS})
160161
endforeach()
161162

162163
if( APPLE )
163-
file(GLOB_RECURSE RESOURCE_FILES
164-
${CMAKE_CURRENT_SOURCE_DIR}/mac/Resources/*.icns
165-
${CMAKE_CURRENT_SOURCE_DIR}/mac/Resources/*.strings)
166-
foreach(_file ${RESOURCE_FILES})
167-
get_filename_component(_file_dir ${_file} PATH)
168-
file(RELATIVE_PATH _file_dir ${CMAKE_CURRENT_SOURCE_DIR}/mac ${_file_dir})
169-
set_source_files_properties( ${_file} PROPERTIES MACOSX_PACKAGE_LOCATION ${_file_dir})
170-
endforeach(_file)
171-
164+
file(GLOB RESOURCE_FILES mac/*.icns mac/*.lproj)
172165
target_sources(${PROJECT_NAME} PRIVATE ${RESOURCE_FILES} Application_mac.mm MacMenuBar.cpp MacMenuBar.h dialogs/CertificateDetails_mac.mm)
166+
set_source_files_properties(${RESOURCE_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
173167
set_source_files_properties( Application_mac.mm dialogs/CertificateDetails_mac.mm PROPERTIES COMPILE_FLAGS "-fobjc-arc" )
174168
set_source_files_properties( LdapSearch.cpp PROPERTIES COMPILE_FLAGS "-Wno-deprecated-declarations" )
175169
target_link_libraries(${PROJECT_NAME} "-framework QuickLookUI" "-fobjc-arc")
@@ -180,7 +174,7 @@ if( APPLE )
180174
COMMAND cp -a $<TARGET_BUNDLE_DIR:DigiDocQL> $<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/PlugIns
181175
)
182176
add_custom_target(macdeployqt DEPENDS ${PROJECT_NAME}
183-
COMMAND ${qtCore_install_prefix}/macdeployqt $<TARGET_BUNDLE_DIR:${PROJECT_NAME}>
177+
COMMAND Qt::macdeployqt $<TARGET_BUNDLE_DIR:${PROJECT_NAME}>
184178
COMMAND rm -rf $<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/PlugIns/bearer
185179
COMMAND cp -a /Library/Frameworks/digidocpp.framework $<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/Frameworks
186180
COMMAND rm $<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/Frameworks/digidocpp.framework/Resources/digidoc-tool
@@ -289,7 +283,7 @@ elseif(WIN32)
289283
COMMAND ${CMAKE_COMMAND} -E copy ${LIBS_PATH}/digidocpp.conf appx
290284
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/Assets appx/Assets
291285
COMMAND ${CMAKE_COMMAND} -E copy_directory ${LIBS_PATH}/schema appx/schema
292-
COMMAND ${qtCore_install_prefix}/windeployqt --no-translations --no-compiler-runtime --no-patchqt --force-openssl
286+
COMMAND Qt::windeployqt --no-translations --no-compiler-runtime --no-patchqt --force-openssl
293287
--skip-plugin-types generic,networkinformation,iconengines --exclude-plugins qjpeg,qico,qgif,qcertonlybackend,qschannelbackend appx
294288
COMMAND makeappx.exe pack -d appx -p ${MSI_FILE}.appx
295289
# https://msdn.microsoft.com/en-us/library/windows/desktop/jj835832(v=vs.85).aspx
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)