diff --git a/cmake/generate_appdata.cmake b/cmake/generate_appdata.cmake index deb39119..0aedce19 100644 --- a/cmake/generate_appdata.cmake +++ b/cmake/generate_appdata.cmake @@ -1,6 +1,9 @@ # add release notes to the appdata file file(READ "${CHANGELOG_HTML}" HTML_CHANGELOGS) -string(REGEX REPLACE "

([A-Fa-f0-9]*)<\\/h4>" "\\1" RELEASES ${HTML_CHANGELOGS}) # h4 is unknow to appdata +# it is not allowed to have multiple texts without being in an environment +# So the description will be used for it +string(REGEX REPLACE "

([^<]*)<\\/p>" "\\1" RELEASES ${HTML_CHANGELOGS}) # remove paragraph environment +string(REGEX REPLACE "

([A-Za-z0-9]*)<\\/h4>" "

\\1

" RELEASES ${RELEASES}) # h4 is unknow to appdata so change it to a paragraph environment string(REPLACE "\n" "\n\t" RELEASES ${RELEASES}) # add tabulator string(REGEX REPLACE "

(v[1-9]\\.[0-9]\\.[0-9]) - ([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9])<\\/h3>" "\n\t" RELEASES ${RELEASES}) string(REGEX REPLACE "
" "
\n\t
" RELEASES ${RELEASES})