Skip to content

Commit ede866d

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 ede866d

File tree

13 files changed

+40
-26
lines changed

13 files changed

+40
-26
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,22 +26,29 @@ 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: /Library/Developer/Open*
39+
key: vcpkg-macOS-${{ hashFiles('prepare_osx_build_environment.sh') }}
40+
- name: Build libraries
41+
run: |
42+
sudo mkdir -p /Library/Developer/Qt-6.9.2-OpenSSL
43+
sudo ./prepare_osx_build_environment.sh -p /Library/Developer
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} \
4552
-DOPENSSL_ROOT_DIR=/Library/Developer/OpenSSL \
4653
-DLDAP_ROOT=/Library/Developer/OpenLDAP \
4754
-DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -B build -S .
@@ -150,25 +157,32 @@ jobs:
150157
run: |
151158
Rename-Item "libdigidocpp*.msi" libdigidocpp.msi
152159
msiexec /qn /i libdigidocpp.msi
160+
- name: Cache vcpkg
161+
uses: actions/cache@v4
162+
with:
163+
path: ${{ github.workspace }}/vcpkg_cache
164+
key: vcpkg-${{ matrix.target }}-${{ hashFiles('.github/workflows/*', 'vcpkg.json', 'CMakeLists.txt', '**/CMakeLists.txt') }}
153165
- name: Prepare vcpkg
154-
uses: lukka/run-vcpkg@v7
166+
uses: lukka/run-vcpkg@v11
155167
with:
156-
vcpkgArguments: openssl zlib flatbuffers
157-
vcpkgGitCommitId: 031ad89ce6c575df35a8e58707ad2c898446c63e
158-
vcpkgTriplet: x64-windows
168+
vcpkgGitCommitId: 98e7cd3a7ba579efc543f8854af800d033031eae
169+
vcpkgJsonGlob: ./vcpkg.json
170+
runVcpkgInstall: true
171+
env:
172+
VCPKG_BINARY_SOURCES: clear;files,${{ github.workspace }}/vcpkg_cache,readwrite
159173
- name: Install Qt
160174
uses: jurplel/install-qt-action@v4
161175
with:
162-
version: 6.9.1
176+
version: 6.9.2
163177
arch: win64_msvc2022_64
164178
- name: Setup dev env
165179
uses: ilammy/msvc-dev-cmd@v1
166180
with:
167181
arch: x64
168182
- name: Install WiX
169183
run: |
170-
dotnet tool install -g wix --version 6.0.1
171-
wix extension -g add WixToolset.UI.wixext/6.0.1
184+
dotnet tool install -g wix --version 6.0.2
185+
wix extension -g add WixToolset.UI.wixext/6.0.2
172186
- name: Build
173187
run: |
174188
cmake "-GNinja" -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo `

client/CMakeLists.txt

Lines changed: 3 additions & 9 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")
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)