@@ -257,70 +257,83 @@ The extension's native app in `main.mm` is a thin adapter layer on top of the Qt
257257
258258You can examine the files in the ` .github/workflows/ ` directory to see how continuous integration build environment has been set up for different operating systems.
259259
260- ### Ubuntu Linux
260+ ### Ubuntu Linux setup
261261
262- Run all commands starting from ` RUN apt-get update ` from the following
263- ` Dockerfile ` :
262+ Install dependecies
264263
265- https://github.com/mrts/docker-qt-cmake-gtest-valgrind-ubuntu/blob/master/Dockerfile
264+ apt update
265+ apt install --no-install-recommends -y lsb-release build-essential devscripts debhelper pkg-config cmake libpcsclite-dev libssl-dev libgtest-dev libgl-dev libqt6svg6-dev qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools
266266
267- ### Windows
267+ ### Linux Building and testing
268+
269+ git clone --recurse-submodules [email protected] :web-eid/web-eid-app.git 270+ cd web-eid-app
271+ ./build.sh
272+ ./test.sh
273+ ./build/src/app/web-eid -c get-signing-certificate '{"origin":"https://ria.ee"}'
274+
275+ ### Windows setup
276+
277+ - Download Visual Studio 2022 community installer from https://visualstudio.microsoft.com/ install _ Visual Studio_
278+ with description "The most comprehensive IDE for .NET and C++ developers on Windows...". During installation choose components:
279+
280+ - NET desktop development
281+ - Desktop development with C++
282+
283+ - After install has finished, open Developer Command Prompt for VS 2022 and run commands given below
284+ - If Nuget does not contain api.nuget.org as source, please add (https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-nuget-add-source#examples )
285+
286+ dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org
268287
269- - Download Visual Studio 2019 community installer from https://visualstudio.microsoft.com/ and install _ Desktop C++ Development_
270288- Install WIX toolset
271289
272- dotnet tool install --global wix --version 5 .0.0
273- wix extension -g add WixToolset.UI.wixext/5 .0.0
274- wix extension -g add WixToolset.Util.wixext/5 .0.0
275- wix extension -g add WixToolset.Bal .wixext/5 .0.0
290+ dotnet tool install --global wix --version 6 .0.1
291+ wix extension -g add WixToolset.UI.wixext/6 .0.1
292+ wix extension -g add WixToolset.Util.wixext/6 .0.1
293+ wix extension -g add WixToolset.BootstrapperApplications .wixext/6 .0.1
276294
277295- Download and install Git for Windows from https://git-scm.com/download/win
278- - Download and install CMake from https://cmake.org/download/
279296- Install _ vcpkg_ by running the following commands in Powershell:
280297
281298 git clone https://github.com/microsoft/vcpkg.git C:\vcpkg
282299 cd C:\vcpkg
283300 .\bootstrap-vcpkg.bat
284301 .\vcpkg integrate install
285302
286- - Install _ Google Test_ and _ OpenSSL_ with _ vcpkg_ :
287-
288- .\vcpkg install --recurse --triplet x64-windows --clean-after-build gtest openssl
289-
290- - Install _ Qt_ with the official [ _ Qt Online Installer_ ] ( https://www.qt.io/download-qt-installer ) ,
291- choose _ Custom installation > Qt 6.6.3 > MSVC 2019 64-bit_ .
292-
293- ### macOS
294-
295- - Install _ Homebrew_ if not already installed:
296-
297- /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
298-
299- - Install _ CMake_ , _ Google Test_ , _ OpenSSL_ and _ Qt_ with _ Homebrew_ :
300-
301- brew install cmake web-eid/gtest/gtest openssl qt@6 node
302-
303- - Create symlink to _ OpenSSL_ location and setup environment variables required
304- by _ CMake_ :
305-
306- export OPENSSL_ROOT_DIR=/usr/local/opt/[email protected] 307- export QT_DIR=/usr/local/opt/qt6/lib/cmake/Qt6
308-
309- ## Building and testing
310-
311- git clone --recurse-submodules [email protected] :web-eid/web-eid-app.git 312- cd web-eid-app
313- ./build.sh
314- ./test.sh
315- ./build/src/app/web-eid -c get-signing-certificate '{"origin":"https://ria.ee"}'
316-
317- ### Building and testing in Windows
303+ - Install _ Google Test_ and _ OpenSSL_ with _ vcpkg_ . In order to install openssl version 1.* create a file C:\vcpkg\vpkg.json with content
304+
305+ {
306+ "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
307+ "builtin-baseline": "a62ce77d56ee07513b4b67de1ec2daeaebfae51a",
308+ "dependencies": [
309+ "gtest",
310+ "openssl"
311+ ],
312+ "overrides": [
313+ {
314+ "name": "openssl",
315+ "version": "1.1.1n"
316+ }
317+ ]
318+ }
319+
320+ - Install packages:
321+
322+ .\vcpkg install --recurse --triplet x64-windows --clean-after-build --vcpkg-root C:\vcpkg
323+
324+ - Install _ Qt_ with the official [ _ Qt Online Installer_ ] ( https://www.qt.io/download-qt-installer ) .
325+ Installer requires you to create an account or log in with existing one.
326+
327+ Choose _ Custom installation > Qt 6.9.3 > MSVC 2022 64-bit_ .
328+ Do not add cmake or ninja or any other component as they are already installed with Visual Studio 2022.
329+
330+ ### Windows building and testing
318331
319332Use _ Powershell_ to run the following commands to build the project.
320333
321334- Set the _ Qt_ installation directory variable:
322335
323- $QT_ROOT = "C:\Qt\6.2.4\msvc2019_64 "
336+ $QT_ROOT = "C:\Qt\6.9.3\msvc2022_64 "
324337
325338- Set the _ vcpkg_ installation directory variable:
326339
@@ -351,6 +364,25 @@ Optionally, WIX Toolset v3 is required for the installer, and the WIX environmen
351364
352365 ctest -V -C ${BUILD_TYPE} --test-dir build
353366
367+ ### macOS setup
368+
369+ - Install _ Homebrew_ if not already installed:
370+
371+ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
372+
373+ - Install _ CMake_ , _ Google Test_ , _ OpenSSL_ and _ Qt_ with _ Homebrew_ :
374+
375+ brew install cmake gtest [email protected] qt@6 node 376+
377+ ### macOS building and testing
378+
379+ git clone --recurse-submodules [email protected] :web-eid/web-eid-app.git 380+ cd web-eid-app
381+ ./build.zsh
382+ ./test.sh
383+ ./build/src/app/web-eid.app/Contents/MacOS/web-eid -c get-signing-certificate '{"origin":"https://ria.ee"}'
384+
385+
354386## Adding and updating translations
355387
356388You can use the free [ Qt Linguist application] ( https://doc.qt.io/qt-5/qtlinguist-index.html )
0 commit comments