Skip to content

Commit b689214

Browse files
authored
Update version number and libs (#1365)
IB-8679, IB-8682 * Qt 6.10.1 * OpenSSL 3.5.4 Signed-off-by: Raul Metsma <[email protected]>
1 parent b65b39a commit b689214

File tree

13 files changed

+109
-147
lines changed

13 files changed

+109
-147
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
MACOSX_DEPLOYMENT_TARGET: 13.0
1515
LIBS_PATH: ${{ github.workspace }}/cache
1616
steps:
17-
- name: Checkout
17+
- &Checkout
18+
name: Checkout
1819
uses: actions/checkout@v5
1920
with:
2021
submodules: recursive
@@ -41,12 +42,12 @@ jobs:
4142
key: vcpkg-macOS-${{ hashFiles('prepare_osx_build_environment.sh') }}
4243
- name: Build libraries
4344
run: |
44-
mkdir -p ${LIBS_PATH}/Qt-6.9.2-OpenSSL
45+
mkdir -p ${LIBS_PATH}/Qt-6.10.1-OpenSSL
4546
./prepare_osx_build_environment.sh -p ${LIBS_PATH}
4647
- name: Install Qt
4748
uses: jurplel/install-qt-action@v4
4849
with:
49-
version: 6.9.2
50+
version: 6.10.1
5051
arch: clang_64
5152
- name: Build
5253
run: |
@@ -59,7 +60,7 @@ jobs:
5960
cmake --build build --target macdeployqt
6061
cmake --build build --target zip
6162
- name: Archive artifacts
62-
uses: actions/upload-artifact@v4
63+
uses: actions/upload-artifact@v5
6364
with:
6465
name: macOS
6566
path: build/qdigidoc4*.zip
@@ -86,10 +87,13 @@ jobs:
8687
repo: open-eid/libdigidocpp
8788
- name: Install dependencies
8889
run: apt update -qq && apt install --no-install-recommends -y git lsb-release build-essential devscripts debhelper pkg-config lintian ${UBUNTU_DEPS}
89-
- name: Checkout
90-
uses: actions/checkout@v5
91-
with:
92-
submodules: recursive
90+
- name: Install gcc 12
91+
if: matrix.container == '22.04'
92+
run: |
93+
apt install -y gcc-12 g++-12
94+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 60 --slave /usr/bin/g++ g++ /usr/bin/g++-12
95+
update-alternatives --set gcc /usr/bin/gcc-12
96+
- *Checkout
9397
- name: Setup changelog
9498
run: |
9599
export VERSION=$(grep project CMakeLists.txt | egrep -o "([0-9]{1,}\.)+[0-9]{1,}")
@@ -102,7 +106,7 @@ jobs:
102106
- name: Lintian
103107
run: lintian *.deb;
104108
- name: Archive artifacts
105-
uses: actions/upload-artifact@v4
109+
uses: actions/upload-artifact@v5
106110
with:
107111
name: ubuntu_${{ matrix.container }}_${{ matrix.arch }}
108112
path: qdigidoc4*.*
@@ -124,32 +128,26 @@ jobs:
124128
repo: open-eid/libdigidocpp
125129
- name: Install Deps
126130
run: dnf install -y ./libdigidocpp-pkg/*.rpm git gcc-c++ cmake rpm-build gettext openssl-devel openldap-devel pcsc-lite-devel qt6-qtsvg-devel qt6-qttools-devel flatbuffers-devel flatbuffers-compiler zlib-devel
127-
- name: Checkout
128-
uses: actions/checkout@v5
129-
with:
130-
submodules: recursive
131+
- *Checkout
131132
- name: Build
132133
run: |
133134
cmake -DCMAKE_INSTALL_PREFIX=/usr -B build -S .
134135
cmake --build build --target all package
135136
- name: Archive artifacts
136-
uses: actions/upload-artifact@v4
137+
uses: actions/upload-artifact@v5
137138
with:
138139
name: fedora_${{ matrix.container }}
139140
path: build/qdigidoc4*.rpm
140141
windows:
141142
name: Build on Windows
142-
runs-on: windows-2022
143+
runs-on: windows-2025
143144
strategy:
144145
matrix:
145146
vcver: [143]
146147
env:
147148
VER_SUFFIX: .VS${{ matrix.vcver }}
148149
steps:
149-
- name: Checkout
150-
uses: actions/checkout@v5
151-
with:
152-
submodules: recursive
150+
- *Checkout
153151
- name: Download artifact
154152
uses: dawidd6/action-download-artifact@v11
155153
with:
@@ -178,7 +176,7 @@ jobs:
178176
- name: Install Qt
179177
uses: jurplel/install-qt-action@v4
180178
with:
181-
version: 6.9.2
179+
version: 6.10.1
182180
arch: win64_msvc2022_64
183181
- name: Setup dev env
184182
uses: ilammy/msvc-dev-cmd@v1
@@ -196,7 +194,7 @@ jobs:
196194
cmake --build build --target msishellext
197195
cmake --build build --target appx
198196
- name: Archive artifacts
199-
uses: actions/upload-artifact@v4
197+
uses: actions/upload-artifact@v5
200198
with:
201199
name: msi_${{ matrix.vcver }}_x64
202200
path: |
@@ -210,10 +208,7 @@ jobs:
210208
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
211209
PROJECTNAME: open-eid/DigiDoc4-Client
212210
steps:
213-
- name: Checkout
214-
uses: actions/checkout@v5
215-
with:
216-
submodules: recursive
211+
- *Checkout
217212
- name: Download artifact
218213
uses: dawidd6/action-download-artifact@v11
219214
with:
@@ -252,10 +247,7 @@ jobs:
252247
permissions:
253248
security-events: write
254249
steps:
255-
- name: Checkout
256-
uses: actions/checkout@v5
257-
with:
258-
submodules: recursive
250+
- *Checkout
259251
- name: Download artifact
260252
uses: dawidd6/action-download-artifact@v11
261253
with:
@@ -267,14 +259,14 @@ jobs:
267259
- name: Install dependencies
268260
run: sudo apt update -qq && sudo apt install --no-install-recommends -y ${UBUNTU_DEPS}
269261
- name: Initialize CodeQL
270-
uses: github/codeql-action/init@v3
262+
uses: github/codeql-action/init@v4
271263
with:
272264
languages: cpp
273265
queries: +security-and-quality
274266
- name: Autobuild
275-
uses: github/codeql-action/autobuild@v3
267+
uses: github/codeql-action/autobuild@v4
276268
- name: Perform CodeQL Analysis
277-
uses: github/codeql-action/analyze@v3
269+
uses: github/codeql-action/analyze@v4
278270
with:
279271
upload: False
280272
output: sarif-results
@@ -289,6 +281,6 @@ jobs:
289281
input: sarif-results/cpp.sarif
290282
output: sarif-results/cpp.sarif
291283
- name: Upload results
292-
uses: github/codeql-action/upload-sarif@v3
284+
uses: github/codeql-action/upload-sarif@v4
293285
with:
294286
sarif_file: sarif-results/cpp.sarif

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ cmake_minimum_required(VERSION 3.22)
22
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/common/CMakeLists.txt)
33
message(FATAL_ERROR "common submodule directory empty, did you 'git clone --recursive'?")
44
endif()
5-
project(qdigidoc4 VERSION 4.9.0)
5+
project(qdigidoc4 VERSION 4.10.0
6+
DESCRIPTION "DigiDoc4 application for digital signing and encryption"
7+
HOMEPAGE_URL https://github.com/open-eid/DigiDoc4-Client
8+
)
69

710
macro(SET_ENV NAME DEF)
811
if(DEFINED ENV{${NAME}})
@@ -26,7 +29,7 @@ set(CMAKE_AUTOMOC ON)
2629
set(CMAKE_C_VISIBILITY_PRESET hidden)
2730
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
2831
set(CMAKE_VISIBILITY_INLINES_HIDDEN YES)
29-
set(CMAKE_CXX_STANDARD 20)
32+
set(CMAKE_CXX_STANDARD 23)
3033
set(CMAKE_CXX_STANDARD_REQUIRED YES)
3134
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION YES)
3235
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_DEBUG NO)

client/Application.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class DigidocConf final: public digidoc::XmlConfCurrent
118118

119119
std::string logFile() const final
120120
{
121-
return log.value_or(digidoc::XmlConfCurrent::logFile());
121+
return log.or_else([this] { return make_optional(digidoc::XmlConfCurrent::logFile()); }).value();
122122
}
123123

124124
std::string proxyHost() const final
@@ -423,10 +423,10 @@ Application::Application( int &argc, char **argv )
423423

424424
// Actions
425425
d->closeAction = new QAction( tr("Close Window"), this );
426-
d->closeAction->setShortcut( Qt::CTRL + Qt::Key_W );
426+
d->closeAction->setShortcut(Qt::CTRL | Qt::Key_W);
427427
connect(d->closeAction, &QAction::triggered, this, &Application::closeWindow);
428428
d->newClientAction = new QAction( tr("New Window"), this );
429-
d->newClientAction->setShortcut( Qt::CTRL + Qt::Key_N );
429+
d->newClientAction->setShortcut(Qt::CTRL | Qt::Key_N);
430430
connect(d->newClientAction, &QAction::triggered, this, []{ showClient({}, false, false, true); });
431431

432432
// This is needed to release application from memory (Windows)

client/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ if( APPLE )
174174
)
175175
add_custom_target(macdeployqt DEPENDS ${PROJECT_NAME}
176176
COMMAND Qt::macdeployqt $<TARGET_BUNDLE_DIR:${PROJECT_NAME}>
177-
COMMAND rm -rf $<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/PlugIns/bearer
177+
COMMAND rm -rf $<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/PlugIns/networkinformation
178178
COMMAND cp -a /Library/Frameworks/digidocpp.framework $<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/Frameworks
179179
COMMAND rm $<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/Frameworks/digidocpp.framework/Resources/digidoc-tool
180180
COMMAND find $<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/Frameworks -name Headers | xargs rm -rf

0 commit comments

Comments
 (0)