Add release information to appdata file (#7771)
authorCarles Pastor Badosa <cpbadosa@gmail.com>
Tue, 16 Oct 2018 19:04:06 +0000 (21:04 +0200)
committersfan5 <sfan5@live.de>
Tue, 16 Oct 2018 19:04:06 +0000 (21:04 +0200)
misc/net.minetest.minetest.appdata.xml
util/bump_version.sh

index 277225d4b5a2e8f98a5c952296fbfef63e5df477..f1b56dc6a932917592a722405b8d958a7777c259 100644 (file)
@@ -55,4 +55,7 @@
        </provides>
        <translation type="gettext">minetest</translation>
        <update_contact>sfan5@live.de</update_contact>
+       <releases>
+               <release date="2018-06-10" version="0.4.17.1"/>
+       </releases>
 </component>
index e4380cfe5163397bd0023613e67857830745b3cd..ad1c9e1cd4091d8f3d4f79b6d201e3fd6c22b5b3 100755 (executable)
@@ -17,6 +17,7 @@ prompt_for_number() {
 # On a release the following actions are performed
 # * DEVELOPMENT_BUILD is set to false
 # * android versionCode is bumped
+# * appdata release version and date are updated
 # * Commit the changes
 # * Tag with current version
 perform_release() {
@@ -24,7 +25,13 @@ perform_release() {
 
        sed -i -re "s/versionCode [0-9]+$/versionCode $NEW_ANDROID_VERSION_CODE/" build/android/build.gradle
 
-       git add -f CMakeLists.txt build/android/build.gradle
+       sed -i '/\<release/s/\(version\)="[^"]*"/\1="'"$RELEASE_VERSION"'"/' misc/net.minetest.minetest.appdata.xml
+
+       RELEASE_DATE=`date +%Y-%m-%d`
+
+       sed -i 's/\(<release date\)="[^"]*"/\1="'"$RELEASE_DATE"'"/' misc/net.minetest.minetest.appdata.xml
+
+       git add -f CMakeLists.txt build/android/build.gradle misc/net.minetest.minetest.appdata.xml
 
        git commit -m "Bump version to $RELEASE_VERSION"
 
@@ -128,4 +135,3 @@ echo "New version: $NEXT_VERSION"
 ########################
 
 back_to_devel
-