11cmake_minimum_required (VERSION 3.22 )
2- project (ID-updater VERSION 3.19.0)
2+ project (ID-updater VERSION 3.19.0
3+ DESCRIPTION "Open-eID updater application for macOS and Windows"
4+ HOMEPAGE_URL https://github.com/open-eid/updater
5+ SPDX_LICENSE LGPL-2.1-or-later
6+ )
37
48macro ( SET_ENV NAME DEF )
59 if ( DEFINED ENV{${NAME} } )
@@ -10,6 +14,7 @@ macro( SET_ENV NAME DEF )
1014endmacro ()
1115
1216set_env (BUILD_NUMBER 0 )
17+ set (CMAKE_EXPERIMENTAL_GENERATE_SBOM ca494ed3-b261-4205-a01f-603c95e4cae0)
1318set (VERSION ${PROJECT_VERSION} .${BUILD_NUMBER} )
1419set_env ( CONFIG_URL "https://id.eesti.ee/config.json" CACHE STRING "Set Config URL" )
1520set_env ( SIGNCERT "" CACHE STRING "Common name of certificate to used sign binaries, empty skip signing" )
@@ -118,7 +123,7 @@ if( APPLE )
118123 MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR} /prefPane/Info.plist.cmake
119124 MACOSX_BUNDLE_BUNDLE_NAME ${PROJECT_NAME}
120125 MACOSX_BUNDLE_GUI_IDENTIFIER "ee.ria.${PROJECT_NAME} "
121- MACOSX_BUNDLE_COPYRIGHT "(C) 2010-2025 Estonian Information System Authority"
126+ MACOSX_BUNDLE_COPYRIGHT "(C) 2010-2026 Estonian Information System Authority"
122127 MACOSX_BUNDLE_ICON_FILE Icon.icns
123128 MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION}
124129 MACOSX_BUNDLE_BUNDLE_VERSION ${BUILD_NUMBER}
@@ -129,7 +134,10 @@ if( APPLE )
129134 add_custom_command (TARGET ${PROJECT_NAME} POST_BUILD
130135 COMMAND cp ${CMAKE_CURRENT_BINARY_DIR} /id-updater-helper $<TARGET_BUNDLE_CONTENT_DIR :${PROJECT_NAME} >/Resources
131136 )
132- install ( TARGETS ${PROJECT_NAME} DESTINATION /Library /PreferencePanes )
137+ install (TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME} Export DESTINATION /Library /PreferencePanes)
138+ export (SBOM ${PROJECT_NAME} EXPORT ${PROJECT_NAME} Export
139+ #PACKAGE_URL "pkg:github/open-eid/updater@${PROJECT_VERSION}"
140+ )
133141
134142 # Sign bundle after resources are copied
135143 add_custom_target (signhelper DEPENDS ${PROJECT_NAME} )
@@ -197,7 +205,6 @@ else()
197205 msi wintrust Crypt32 taskschd comsupp Setupapi winscard Wtsapi32
198206 )
199207 qt_add_translations (${PROJECT_NAME} TS_FILES idupdater_et.ts idupdater_ru.ts
200- common/translations/common_et.ts common/translations/common_ru.ts
201208 common/translations/qtbase_et.ts common/translations/qtbase_ru.ts
202209 RESOURCE_PREFIX /
203210 LUPDATE_OPTIONS -locations none
@@ -231,6 +238,8 @@ else()
231238 ${CMAKE_SOURCE_DIR} /common/WixUI_Minimal.wxs
232239 -o ${MSI_FILE} .msi
233240 )
241+ install (TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME} Export )
242+ export (SBOM ${PROJECT_NAME} EXPORT ${PROJECT_NAME} Export )
234243 if (SIGNCERT)
235244 if (CROSSSIGNCERT)
236245 target_link_options (${PROJECT_NAME} PRIVATE "/INTEGRITYCHECK" )
0 commit comments