mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
chore: add version to appdata.xml adapt update-versions script
This commit is contained in:
parent
e1e42f8d60
commit
95fc3b371d
|
@ -21,7 +21,7 @@
|
|||
Nowadays, every government seems to be interested in what we're saying online.
|
||||
qTox is built on a "privacy goes first" agenda, and we make no compromises.
|
||||
Your safety is our top priority, and there isn't anything in the world that
|
||||
will change that.
|
||||
will change that.
|
||||
</p>
|
||||
<p>Instant messaging, video conferencing, and more.</p>
|
||||
<ul>
|
||||
|
@ -63,5 +63,8 @@
|
|||
<url type="homepage">https://qtox.github.io</url>
|
||||
<update_contact>barrdetwix@gmail.com</update_contact>
|
||||
<project_group>qTox</project_group>
|
||||
<releases>
|
||||
<release version="1.16.3" date="2018-07-21"/>
|
||||
</releases>
|
||||
</component>
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
|
||||
|
||||
# script to change versions in the files for osx and windows "packages"
|
||||
#
|
||||
#
|
||||
# it should be run before releasing a new version
|
||||
#
|
||||
# NOTE: it checkouts the files before appending a version to them!
|
||||
|
@ -55,6 +55,14 @@ update_readme() {
|
|||
sed -ri "s|(github.com/qTox/qTox/releases/download/v$VERSION_PATTERN/qTox-v)$VERSION_PATTERN|\1$@|g" README.md
|
||||
}
|
||||
|
||||
update_appdata() {
|
||||
cd "$BASE_DIR"/res/
|
||||
local isodate="$(date --iso-8601)"
|
||||
sed -ri "s|(<release version=\")$VERSION_PATTERN|\1$@|g" io.github.qtox.qTox.appdata.xml
|
||||
sed -ri "s|(<release version=\"$VERSION_PATTERN\" date=\").{10}|\1"$isodate"|g" io.github.qtox.qTox.appdata.xml
|
||||
}
|
||||
|
||||
|
||||
# exit if supplied arg is not a version
|
||||
is_version() {
|
||||
if [[ ! $@ =~ $VERSION_PATTERN ]]
|
||||
|
@ -74,6 +82,7 @@ main() {
|
|||
update_osx "$@"
|
||||
update_windows "$@"
|
||||
update_readme "$@"
|
||||
update_appdata "$@"
|
||||
else
|
||||
# TODO: actually check whether there is a GNU sed on osx
|
||||
echo "OSX's sed not supported. Get a proper one."
|
||||
|
|
Loading…
Reference in New Issue
Block a user