Skip to content

Commit

Permalink
Update version number
Browse files Browse the repository at this point in the history
IB-8336

Signed-off-by: Raul Metsma <raul@metsma.ee>
  • Loading branch information
metsma committed Jan 9, 2025
1 parent c28a0a5 commit a47065c
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 40 deletions.
32 changes: 14 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
branch: master
branch: version
name: macos
path: libdigidocpp-pkg
repo: open-eid/libdigidocpp
repo: metsma/libdigidocpp
- name: Install dependencies
env:
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: YES
Expand Down Expand Up @@ -66,10 +66,10 @@ jobs:
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
branch: master
branch: version
name: ubuntu_${{ matrix.container }}
path: libdigidocpp-pkg
repo: open-eid/libdigidocpp
repo: metsma/libdigidocpp
- name: Install dependencies
if: matrix.container == '20.04'
run: apt update -qq && apt install --no-install-recommends -y git lsb-release build-essential devscripts debhelper pkg-config lintian ./libdigidocpp-pkg/*.deb cmake libldap2-dev gettext libpcsclite-dev libssl-dev libqt5svg5-dev qttools5-dev-tools qttools5-dev libflatbuffers-dev zlib1g-dev
Expand Down Expand Up @@ -117,10 +117,10 @@ jobs:
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
branch: master
branch: version
name: fedora_${{ matrix.container }}
path: libdigidocpp-pkg
repo: open-eid/libdigidocpp
repo: metsma/libdigidocpp
- name: Install artifact
run: dnf install -y ./libdigidocpp-pkg/*.rpm
- name: Build
Expand Down Expand Up @@ -152,14 +152,14 @@ jobs:
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
branch: master
branch: version
name: msi_${{ matrix.vcver }}_x64
path: ./
repo: open-eid/libdigidocpp
repo: metsma/libdigidocpp
- name: Install artifact
run: |
Rename-Item "libdigidocpp*.msi" libdigidocpp.msi
msiexec /qn /a libdigidocpp.msi "TARGETDIR=$($pwd.Path)\\libs"
msiexec /qn /i libdigidocpp.msi
- name: Prepare vcpkg
uses: lukka/run-vcpkg@v7
with:
Expand All @@ -181,12 +181,8 @@ jobs:
wix extension -g add WixToolset.UI.wixext/5.0.2
- name: Build
run: |
if ($env:VCToolsRedistDir -eq $null) {
$env:VCToolsRedistDir = -join ($env:VCINSTALLDIR, "Redist\MSVC\", $env:VCToolsVersion, "\")
}
cmake "-GNinja" -B build -S . -DCMAKE_BUILD_TYPE=RelWithDebInfo `
-DCMAKE_TOOLCHAIN_FILE=${{ env.RUNVCPKG_VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake `
"-DLibDigiDocpp_ROOT=libs/PFiles64/libdigidocpp"
-DCMAKE_TOOLCHAIN_FILE=${{ env.RUNVCPKG_VCPKG_ROOT }}/scripts/buildsystems/vcpkg.cmake
cmake --build build --target msi
cmake --build build --target msishellext
cmake --build build --target appx
Expand All @@ -213,10 +209,10 @@ jobs:
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
branch: master
branch: version
name: ubuntu_24.04
path: libdigidocpp-pkg
repo: open-eid/libdigidocpp
repo: metsma/libdigidocpp
- name: Install dependencies
run: sudo apt update -qq && sudo apt install --no-install-recommends -y ${UBUNTU_DEPS}
- name: Download Coverity Build Tool
Expand Down Expand Up @@ -255,10 +251,10 @@ jobs:
uses: dawidd6/action-download-artifact@v6
with:
workflow: build.yml
branch: master
branch: version
name: ubuntu_24.04
path: libdigidocpp-pkg
repo: open-eid/libdigidocpp
repo: metsma/libdigidocpp
- name: Install dependencies
run: sudo apt update -qq && sudo apt install --no-install-recommends -y ${UBUNTU_DEPS}
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.16)
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/cmake/modules/VersionInfo.cmake)
message(FATAL_ERROR "cmake submodule directory empty, did you 'git clone --recursive'?")
endif()
project(qdigidoc4 VERSION 4.7.0)
project(qdigidoc4 VERSION 4.8.0)

set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
Expand All @@ -11,7 +11,7 @@ set(CMAKE_AUTOMOC ON)
include( GNUInstallDirs )
include( VersionInfo )

find_package(LibDigiDocpp 4.1.0 REQUIRED)
find_package(libdigidocpp 4.2.0 REQUIRED HINTS /Library/libdigidocpp)
find_package( LDAP REQUIRED )
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
find_package(Qt${QT_VERSION_MAJOR} 5.12.0 REQUIRED COMPONENTS Core Widgets Network PrintSupport Svg LinguistTools)
Expand Down
25 changes: 9 additions & 16 deletions client/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
get_target_property(qtCore_install_prefix Qt${QT_VERSION_MAJOR}::qmake IMPORTED_LOCATION)
get_filename_component(qtCore_install_prefix ${qtCore_install_prefix} DIRECTORY)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/TSL.qrc)
set(TSL_QRC ${CMAKE_CURRENT_SOURCE_DIR}/TSL.qrc)
else()
add_executable(TSLDownload TSLDownload.cpp)
target_link_libraries(TSLDownload Qt${QT_VERSION_MAJOR}::Network)
set_target_properties(TSLDownload PROPERTIES AUTOMOC OFF)
get_target_property(qtCore_install_prefix Qt${QT_VERSION_MAJOR}::qmake IMPORTED_LOCATION)
get_filename_component(qtCore_install_prefix ${qtCore_install_prefix} DIRECTORY)
add_custom_command(
OUTPUT TSL.qrc
DEPENDS TSLDownload
Expand Down Expand Up @@ -98,7 +98,7 @@ target_link_libraries(${PROJECT_NAME}
qdigidoccommon
Qt${QT_VERSION_MAJOR}::PrintSupport
Qt${QT_VERSION_MAJOR}::Svg
${LIBDIGIDOCPP_LIBRARY}
digidocpp::digidocpp
${LDAP_LIBRARIES}
$<TARGET_NAME_IF_EXISTS:flatbuffers::flatbuffers>
$<TARGET_NAME_IF_EXISTS:flatbuffers::flatbuffers_shared>
Expand All @@ -121,7 +121,6 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
MACOSX_BUNDLE_BUNDLE_NAME ${PROJECT_NAME}
MACOSX_BUNDLE_GUI_IDENTIFIER "ee.ria.${PROJECT_NAME}"
)
target_include_directories(${PROJECT_NAME} PRIVATE ${LIBDIGIDOCPP_INCLUDE_DIR})
target_compile_definitions(${PROJECT_NAME} PRIVATE
CDOC2_GET_URL="${CDOC2_GET_URL}"
CDOC2_POST_URL="${CDOC2_POST_URL}"
Expand Down Expand Up @@ -212,14 +211,8 @@ elseif(WIN32)
target_compile_options(${PROJECT_NAME} PRIVATE "/guard:cf")
target_link_options(${PROJECT_NAME} PRIVATE "/guard:cf" $<$<BOOL:${CROSSSIGNCERT}>:/INTEGRITYCHECK>)
target_link_libraries(${PROJECT_NAME} NCrypt Crypt32 Cryptui)
cmake_parse_arguments(GETLIB "" "optimized;debug" "" ${LIBDIGIDOCPP_LIBRARY})
if(GETLIB_debug AND CMAKE_BUILD_TYPE STREQUAL "Debug")
get_filename_component(LIBS_PATH ${GETLIB_debug} DIRECTORY)
elseif(GETLIB_optimized)
get_filename_component(LIBS_PATH ${GETLIB_optimized} DIRECTORY)
else()
get_filename_component(LIBS_PATH ${GETLIB_UNPARSED_ARGUMENTS} DIRECTORY)
endif()
get_filename_component(LIBS_PATH ${libdigidocpp_DIR} DIRECTORY)
get_filename_component(LIBS_PATH ${LIBS_PATH} DIRECTORY)
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(PLATFORM x64)
set(OPENSSL_SUFFIX "-x64")
Expand All @@ -231,15 +224,15 @@ elseif(WIN32)
set(WIX_CMD wix.exe build -nologo
-arch ${PLATFORM}
-ext WixToolset.UI.wixext
-bv WixUIDialogBmp=${CMAKE_SOURCE_DIR}/cmake/modules/dlgbmp.bmp
-bv WixUIBannerBmp=${CMAKE_SOURCE_DIR}/cmake/modules/banner.bmp
-bv WixUIDialogBmp=${CMAKE_SOURCE_DIR}/common/dlgbmp.bmp
-bv WixUIBannerBmp=${CMAKE_SOURCE_DIR}/common/banner.bmp
-d ico_path=${CMAKE_CURRENT_SOURCE_DIR}/images/digidoc.ico
-d libs_path=${LIBS_PATH}
-d client_path=$<TARGET_FILE:${PROJECT_NAME}>
-d qt_suffix=$<$<CONFIG:Debug>:d>
${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.wxs
${CMAKE_SOURCE_DIR}/cmake/modules/WelcomeDlg.wxs
${CMAKE_SOURCE_DIR}/cmake/modules/WixUI_Minimal.wxs
${CMAKE_SOURCE_DIR}/common/WelcomeDlg.wxs
${CMAKE_SOURCE_DIR}/common/WixUI_Minimal.wxs
)
add_custom_target(msi DEPENDS ${PROJECT_NAME}
COMMAND ${WIX_CMD} -o "${MSI_FILE}.msi"
Expand Down
2 changes: 1 addition & 1 deletion cmake
2 changes: 1 addition & 1 deletion common
4 changes: 2 additions & 2 deletions extensions/DigiDocQL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ set_target_properties( DigiDocQL PROPERTIES
XCODE_ATTRIBUTE_WRAPPER_EXTENSION qlgenerator
MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist
AUTOMOC OFF
INCLUDE_DIRECTORIES "${LIBDIGIDOCPP_INCLUDE_DIR}"
COMPILE_FLAGS "-Wno-unused-parameter"
LINK_LIBRARIES "-framework QuickLook;-framework digidocpp;-framework Cocoa"
LINK_LIBRARIES "-framework QuickLook;-framework Cocoa"
LINK_FLAGS "-F/Library/Frameworks -fobjc-arc"
BUILD_WITH_INSTALL_RPATH YES
INSTALL_RPATH "@loader_path/../../../../../Frameworks"
)
target_link_libraries(DigiDocQL digidocpp::digidocpp)

0 comments on commit a47065c

Please sign in to comment.