2022-05-23 19:52:35 +03:00
|
|
|
# add release notes to the appdata file
|
|
|
|
file(READ "${CHANGELOG_HTML}" HTML_CHANGELOGS)
|
2022-05-24 15:14:12 +03:00
|
|
|
string(REGEX REPLACE "<h4>([A-Fa-f0-9]*)<\\/h4>" "\\1" RELEASES ${HTML_CHANGELOGS}) # h4 is unknow to appdata
|
|
|
|
string(REPLACE "\n" "\n\t" RELEASES ${RELEASES}) # add tabulator
|
2022-05-24 14:55:04 +03:00
|
|
|
string(REGEX REPLACE "<h3>(v[1-9]\\.[0-9]\\.[0-9]) - ([0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9])<\\/h3>" "<release version='\\1' date='\\2'>\n\t<description>" RELEASES ${RELEASES})
|
|
|
|
string(REGEX REPLACE "<hr \\/>" "</description>\n\t</release>" RELEASES ${RELEASES})
|
2022-05-23 19:52:35 +03:00
|
|
|
configure_file(${APPDATA_CONF} ${APPDATA})
|