Skip to content

Commit 367c4da

Browse files
committed
Increase version number
Signed-off-by: Raul Metsma <[email protected]>
1 parent 5dd5830 commit 367c4da

File tree

12 files changed

+68
-106
lines changed

12 files changed

+68
-106
lines changed

.github/workflows/cmake-linux-ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
container: ubuntu:${{matrix.container}}
1818
strategy:
1919
matrix:
20-
container: ['22.04', '24.04', '24.10', '25.04']
20+
container: ['22.04', '24.04', '25.04']
2121
arch: ['amd64', 'arm64']
2222

2323
steps:

.github/workflows/cmake-macos.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ env:
1010
GTest_ROOT: ${{ github.workspace }}/gtest-binary
1111
QT_QPA_PLATFORM: offscreen
1212
CMAKE_BUILD_PARALLEL_LEVEL: 3
13-
MACOSX_DEPLOYMENT_TARGET: 12.0
13+
MACOSX_DEPLOYMENT_TARGET: 13.0
1414

1515
jobs:
1616
build:
@@ -39,16 +39,16 @@ jobs:
3939
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
4040
-DCMAKE_OSX_ARCHITECTURES="arm64;x86_64" \
4141
-DCMAKE_INSTALL_PREFIX=${GTest_ROOT} \
42-
-DCMAKE_CXX_STANDARD=17
42+
-DCMAKE_CXX_STANDARD=20
4343
cmake --build gtest-build --target install
4444
4545
- name: Build OpenSSL
4646
if: steps.cache.outputs.cache-hit != 'true'
4747
run: |
48-
git clone --depth=1 https://github.com/openssl/openssl.git -b openssl-3.0
48+
git clone --depth=1 https://github.com/openssl/openssl.git -b openssl-3.5
4949
cd openssl
5050
for ARCH in x86_64 arm64; do
51-
./Configure darwin64-${ARCH} --prefix=${OPENSSL_ROOT_DIR} no-shared no-module no-tests enable-ec_nistp_64_gcc_128
51+
./Configure darwin64-${ARCH} --prefix=${OPENSSL_ROOT_DIR} no-apps no-shared no-module no-tests enable-ec_nistp_64_gcc_128
5252
MAKEFLAGS=-j1 make -s install_sw
5353
mv ${OPENSSL_ROOT_DIR}{,.${ARCH}}
5454
make distclean
@@ -64,7 +64,7 @@ jobs:
6464
- name: Install Qt
6565
uses: jurplel/install-qt-action@v4
6666
with:
67-
version: 6.7.3
67+
version: 6.9.1
6868
arch: clang_64
6969

7070
- name: Configure

.github/workflows/cmake-windows.yml

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,10 @@ env:
99

1010
jobs:
1111
build:
12-
runs-on: ${{ matrix.image }}
12+
runs-on: windows-2022
1313
strategy:
1414
matrix:
15-
vcver: [142, 143]
16-
include:
17-
- vcver: 142
18-
image: windows-2019
19-
- vcver: 143
20-
image: windows-2022
15+
arch: [x64, arm64]
2116

2217
steps:
2318
- name: Checkout code
@@ -29,26 +24,26 @@ jobs:
2924
uses: lukka/run-vcpkg@v7
3025
with:
3126
vcpkgArguments: gtest openssl
32-
vcpkgTriplet: x64-windows
33-
vcpkgGitCommitId: 1f619be01b436b796dab797dd1e1721c5676f8ac
27+
vcpkgTriplet: ${{matrix.arch}}-windows
28+
vcpkgGitCommitId: 031ad89ce6c575df35a8e58707ad2c898446c63e
3429

3530
- name: Install Qt
3631
uses: jurplel/install-qt-action@v4
3732
with:
38-
version: 6.7.3
39-
arch: win64_msvc2019_64
33+
version: 6.9.1
34+
arch: ${{ matrix.arch == 'arm64' && 'win64_msvc2022_arm64_cross_compiled' || 'win64_msvc2022_64' }}
4035

4136
- name: Setup MS Visual C++ dev env
4237
uses: ilammy/msvc-dev-cmd@v1
4338
with:
44-
arch: x64
39+
arch: ${{ matrix.arch == 'arm64' && 'amd64_arm64' || 'amd64' }}
4540

4641
- name: Install WiX
4742
run: |
48-
dotnet tool install --global wix --version 5.0.2
49-
wix extension -g add WixToolset.UI.wixext/5.0.2
50-
wix extension -g add WixToolset.Util.wixext/5.0.2
51-
wix extension -g add WixToolset.BootstrapperApplications.wixext/5.0.2
43+
dotnet tool install --global wix --version 6.0.1
44+
wix extension -g add WixToolset.UI.wixext/6.0.1
45+
wix extension -g add WixToolset.Util.wixext/6.0.1
46+
wix extension -g add WixToolset.BootstrapperApplications.wixext/6.0.1
5247
5348
- name: Configure
5449
run: |
@@ -63,12 +58,13 @@ jobs:
6358
cmake --build build --config ${env:BUILD_TYPE} --target bundle
6459
6560
- name: Test
61+
if: ${{ matrix.arch == 'x64' }}
6662
run: ctest -V -C ${env:BUILD_TYPE} --test-dir build
6763

6864
- name: Upload artifacts
6965
uses: actions/upload-artifact@v4
7066
with:
71-
name: web-eid-app-windows-build-VC${{matrix.vcver}}-${{github.run_number}}
67+
name: web-eid-app-windows-build-${{matrix.arch}}-${{github.run_number}}
7268
path: |
7369
build/src/app/*.msi
7470
build/src/app/*.exe

CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ elseif($ENV{CI_PIPELINE_IID})
1111
else()
1212
set(BUILD_NUMBER 0)
1313
endif()
14-
project(web-eid VERSION 2.7.0.${BUILD_NUMBER})
14+
project(web-eid VERSION 2.8.0.${BUILD_NUMBER})
1515

1616
set(MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
1717
set(MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION_TWEAK})
@@ -33,8 +33,6 @@ set(CROSSSIGNCERT "" CACHE STRING "Common name of certificate to used cross sign
3333
set(SAFARI_PROVISIONPROFILE "" CACHE STRING "Provision profile to include in application (macOS)")
3434

3535
find_package(Qt6 6.2.0 REQUIRED COMPONENTS Core Widgets Network Test LinguistTools SvgWidgets)
36-
get_target_property(qtCore_install_prefix Qt6::qmake IMPORTED_LOCATION)
37-
get_filename_component(qtCore_install_prefix ${qtCore_install_prefix} DIRECTORY)
3836

3937
add_subdirectory(lib/libelectronic-id)
4038

install/web-eid.wxs

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
<?define VCVER = "142" ?>
99
<?endif?>
1010

11-
<?if $(sys.BUILDARCH) = x64 ?>
12-
<?define ssl_suffix = "-x64" ?>
13-
<?else?>
11+
<?if $(sys.BUILDARCH) = x86 ?>
1412
<?define ssl_suffix = "" ?>
13+
<?else?>
14+
<?define ssl_suffix = "-$(sys.BUILDARCH)" ?>
1515
<?endif?>
1616

1717
<?if $(var.qt_suffix) = "d" ?>
@@ -85,21 +85,15 @@
8585
<File Source="$(var.qt_path)\Qt6Network$(var.qt_suffix).dll" />
8686
<File Source="$(var.qt_path)\Qt6Svg$(var.qt_suffix).dll" />
8787
<File Source="$(var.qt_path)\Qt6Widgets$(var.qt_suffix).dll" />
88+
<File Source="$(var.qt_path)\Qt6SvgWidgets$(var.qt_suffix).dll" />
89+
<?if $(sys.BUILDARCH) != arm64 ?>
8890
<File Source="$(var.qt_path)\D3DCompiler_47.dll" />
8991
<File Source="$(var.qt_path)\opengl32sw.dll" />
90-
<File Source="$(var.qt_path)\Qt6SvgWidgets$(var.qt_suffix).dll" />
91-
<Directory Id="platforms" Name="platforms">
92-
<File Source="$(var.qt_path)\..\plugins\platforms\qwindows$(var.qt_suffix).dll" />
93-
</Directory>
94-
<Directory Id="styles" Name="styles">
95-
<File Source="$(var.qt_path)\..\plugins\styles\qmodernwindowsstyle$(var.qt_suffix).dll" />
96-
</Directory>
97-
<Directory Id="imageformats" Name="imageformats">
98-
<File Source="$(var.qt_path)\..\plugins\imageformats\qsvg$(var.qt_suffix).dll" />
99-
</Directory>
100-
<Directory Id="tls" Name="tls">
101-
<File Source="$(var.qt_path)\..\plugins\tls\qopensslbackend$(var.qt_suffix).dll" />
102-
</Directory>
92+
<?endif?>
93+
<File Subdirectory="platforms" Source="$(var.qt_path)\..\plugins\platforms\qwindows$(var.qt_suffix).dll" />
94+
<File Subdirectory="styles" Source="$(var.qt_path)\..\plugins\styles\qmodernwindowsstyle$(var.qt_suffix).dll" />
95+
<File Subdirectory="imageformats" Source="$(var.qt_path)\..\plugins\imageformats\qsvg$(var.qt_suffix).dll" />
96+
<File Subdirectory="tls" Source="$(var.qt_path)\..\plugins\tls\qopensslbackend$(var.qt_suffix).dll" />
10397
<?endif?>
10498
<Component Id="ChromeEdge" Transitive="yes" Condition="(CHROMEINSTALL = 1 OR EDGEINSTALL = 1)">
10599
<File Source="$(var.json)" />

src/app/CMakeLists.txt

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,15 @@ set_property(SOURCE web-eid.rc APPEND PROPERTY COMPILE_DEFINITIONS
1515
target_link_libraries(web-eid controller ui pcsc)
1616

1717
if(WIN32)
18-
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
19-
set(PLATFORM x64)
20-
else()
21-
set(PLATFORM x86)
22-
endif()
2318
if(OPENSSL_ROOT_DIR)
2419
set(SSL_PATH "${OPENSSL_ROOT_DIR}/bin")
2520
else()
2621
get_filename_component(SSL_PATH "${OPENSSL_INCLUDE_DIR}/../bin" ABSOLUTE)
2722
endif()
2823
set(WEBEID_PATH web-eid.exe)
29-
set(BASE_FILE $<TARGET_NAME:web-eid>_${PROJECT_VERSION}.${PLATFORM})
24+
set(BASE_FILE $<TARGET_NAME:web-eid>_${PROJECT_VERSION}.$ENV{PLATFORM})
3025
set(WIX_CMD wix.exe build -nologo
31-
-arch ${PLATFORM}
26+
-arch $ENV{PLATFORM}
3227
-ext WixToolset.UI.wixext
3328
-bv WixUIDialogBmp=${CMAKE_SOURCE_DIR}/install/dlgbmp.bmp
3429
-d ssl_path="${SSL_PATH}"
@@ -45,7 +40,7 @@ if(WIN32)
4540
add_custom_target(installer DEPENDS web-eid
4641
COMMAND ${WIX_CMD} -o "${BASE_FILE}.msi"
4742
#Build MSI with QT
48-
COMMAND ${WIX_CMD} -d qt_path=${qtCore_install_prefix} -o "${BASE_FILE}.qt.msi"
43+
COMMAND ${WIX_CMD} -d qt_path=${Qt6_DIR}/../../../bin -o "${BASE_FILE}.qt.msi"
4944
WORKING_DIRECTORY $<TARGET_FILE_DIR:web-eid>
5045
)
5146
add_custom_target(bundle DEPENDS installer
@@ -93,7 +88,7 @@ elseif(APPLE)
9388
install(FILES ${CMAKE_SOURCE_DIR}/install/ncibgoaomkmdpilpocfeponihegamlic.json COMPONENT chrome
9489
DESTINATION "/Library/Application Support/Google/Chrome/External Extensions")
9590
add_custom_target(macdeployqt DEPENDS web-eid
96-
COMMAND ${qtCore_install_prefix}/macdeployqt $<TARGET_BUNDLE_DIR:web-eid>
91+
COMMAND Qt6::macdeployqt $<TARGET_BUNDLE_DIR:web-eid>
9792
)
9893
add_custom_target(installer-native DEPENDS macdeployqt
9994
COMMAND rm -rf root_native
@@ -153,7 +148,7 @@ else()
153148
option(BUNDLE_XPI "Download and bundle the Firefox extension" OFF)
154149
include(GNUInstallDirs)
155150
if (BUNDLE_XPI)
156-
file(DOWNLOAD ${FIREFOX_URL} ${CMAKE_CURRENT_BINARY_DIR}/${FIREFOX_UUID}.xpi)
151+
file(DOWNLOAD ${FIREFOX_URL} ${CMAKE_CURRENT_BINARY_DIR}/${FIREFOX_UUID}.xpi)
157152
endif()
158153
set(WEBEID_PATH ${CMAKE_INSTALL_FULL_BINDIR}/web-eid)
159154
install(TARGETS web-eid DESTINATION ${CMAKE_INSTALL_BINDIR})
@@ -177,7 +172,7 @@ else()
177172
install(FILES ${CMAKE_SOURCE_DIR}/install/web-eid.desktop
178173
DESTINATION ${CMAKE_INSTALL_DATADIR}/applications)
179174
if (BUNDLE_XPI)
180-
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${FIREFOX_UUID}.xpi
175+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${FIREFOX_UUID}.xpi
181176
DESTINATION ${CMAKE_INSTALL_DATADIR}/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384})
182177
endif()
183178
foreach(RES 16 32 128 256 512)

src/app/main.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@
3030

3131
int main(int argc, char* argv[])
3232
{
33-
Q_INIT_RESOURCE(web_eid_resources);
34-
3533
Application app(argc, argv, QStringLiteral("web-eid"));
3634

3735
try {

src/controller/utils/observer_ptr.hpp

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
* Copyright (c) 2020-2024 Estonian Information System Authority
3+
*
4+
* Permission is hereby granted, free of charge, to any person obtaining a copy
5+
* of this software and associated documentation files (the "Software"), to deal
6+
* in the Software without restriction, including without limitation the rights
7+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
* copies of the Software, and to permit persons to whom the Software is
9+
* furnished to do so, subject to the following conditions:
10+
*
11+
* The above copyright notice and this permission notice shall be included in all
12+
* copies or substantial portions of the Software.
13+
*
14+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20+
* SOFTWARE.
21+
*/
22+
123
#pragma once
224

325
// Non-owning observing pointer.

src/mac/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ add_custom_command(TARGET web-eid-safari POST_BUILD
5656
)
5757

5858
add_custom_target(macdeployqt-safari DEPENDS web-eid-safari
59-
COMMAND ${qtCore_install_prefix}/macdeployqt $<TARGET_BUNDLE_DIR:web-eid-safari>
59+
COMMAND Qt6::macdeployqt $<TARGET_BUNDLE_DIR:web-eid-safari> -appstore-compliant
6060
)
6161

6262
# Installer

src/mac/main.mm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,6 @@ void showSafariSettings() final
171171

172172
int main(int argc, char* argv[])
173173
{
174-
Q_INIT_RESOURCE(web_eid_resources);
175-
176174
SafariApplication app(argc, argv, QStringLiteral("web-eid-safari"));
177175
auto appPtr = &app;
178176

0 commit comments

Comments
 (0)