Guilherme Silva 9d2d7dc022
chore: rename app id to io.github.martinrotter.rssguard (#826)
The previous app id was invalid, according to Flathub/Flatpak rules.

Additionally, install the AppData file as `*.metainfo.xml`, because
`appdata.xml` is the legacy name.

Co-authored-by: guihkx <guihkx@users.noreply.github.com>
2022-10-26 12:56:48 +02:00

17 lines
511 B
Bash
Executable File

#!/bin/sh
changelog_file="resources/text/CHANGELOG"
datestring="$(date +%F)"
versionstring="$(head -n 1 "$changelog_file")"
for appdata_file in resources/desktop/*.metainfo.xml; do
appdata_file_n="${appdata_file}.n"
# Set version and date.
cat "$appdata_file" | sed -e "s@release version\=\"[A-Za-z0-9.]*\"@release version\=\"$versionstring\"@g" | sed -e "s@ date\=\"[0-9\-]*\"@ date\=\"$datestring\"@g" > "$appdata_file_n"
mv "$appdata_file_n" "$appdata_file"
git add "$appdata_file"
done
exit 0