Blob Blame History Raw
diff -urdN qdigidoc4-4.2.5-orig/client/CMakeLists.txt qdigidoc4-4.2.5/client/CMakeLists.txt
--- qdigidoc4-4.2.5-orig/client/CMakeLists.txt	2020-06-19 11:58:49.000000000 +0200
+++ qdigidoc4-4.2.5/client/CMakeLists.txt	2020-06-24 22:57:04.968299617 +0200
@@ -1,14 +1,5 @@
 set_app_name( PROGNAME qdigidoc4 )
 
-add_executable( TSLDownload TSLDownload.cpp )
-target_link_libraries( TSLDownload Qt5::Network )
-add_custom_command(
-	OUTPUT TSL.qrc
-	DEPENDS TSLDownload
-	COMMAND $<TARGET_FILE:TSLDownload> "${CMAKE_CURRENT_BINARY_DIR}" ${TSL_URL} ${TSL_INCLUDE}
-	WORKING_DIRECTORY ${_qt5Core_install_prefix}/bin
-)
-
 configure_file( translations/tr.qrc tr.qrc COPYONLY )
 qt5_add_translation( SOURCES translations/en.ts translations/et.ts translations/ru.ts )
 qt5_add_resources( SOURCES images/images.qrc fonts/fonts.qrc ${CMAKE_CURRENT_BINARY_DIR}/tr.qrc ${CMAKE_CURRENT_BINARY_DIR}/TSL.qrc )
diff -urdN qdigidoc4-4.2.5-orig/common/CMakeLists.txt qdigidoc4-4.2.5/common/CMakeLists.txt
--- qdigidoc4-4.2.5-orig/common/CMakeLists.txt	2020-06-19 11:58:50.000000000 +0200
+++ qdigidoc4-4.2.5/common/CMakeLists.txt	2020-06-24 22:59:43.046478476 +0200
@@ -35,13 +35,8 @@
 	if( LAST_CHECK_DAYS )
 		set_source_files_properties( Configuration.cpp PROPERTIES COMPILE_DEFINITIONS "LAST_CHECK_DAYS=${LAST_CHECK_DAYS}" )
 	endif()
-	file( DOWNLOAD ${CONFIG_URL} ${CMAKE_CURRENT_BINARY_DIR}/config.json )
-	string( REPLACE ".json" ".rsa" RSA_URL ${CONFIG_URL} )
-	file( DOWNLOAD ${RSA_URL} ${CMAKE_CURRENT_BINARY_DIR}/config.rsa )
-	string( REPLACE ".json" ".pub" PUB_URL ${CONFIG_URL} )
-	file( DOWNLOAD ${PUB_URL} ${CMAKE_CURRENT_BINARY_DIR}/config.pub )
 	configure_file( config.qrc config.qrc COPYONLY )
-	qt5_add_resources( CONFIG_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/config.qrc )
+	qt5_add_resources( CONFIG_SOURCES config.qrc )
 	target_compile_definitions(qdigidoccommon PUBLIC CONFIG_URL="${CONFIG_URL}")
 	target_sources(qdigidoccommon PRIVATE ${CONFIG_SOURCES} Configuration.cpp )
 endif()