aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorCarles Pastor Badosa <cpbadosa@gmail.com>2018-10-16 21:04:06 +0200
committersfan5 <sfan5@live.de>2018-10-16 21:04:06 +0200
commit226bf8b87052619d387fe0e40f90a4723dd714a7 (patch)
tree0048ab92ed06afa94b6b7f6e2d4150745a8c974e /util
parent40ab3e011de5be83b342e5d2b67c2837294b2d58 (diff)
downloadminetest-226bf8b87052619d387fe0e40f90a4723dd714a7.tar.gz
minetest-226bf8b87052619d387fe0e40f90a4723dd714a7.tar.bz2
minetest-226bf8b87052619d387fe0e40f90a4723dd714a7.zip
Add release information to appdata file (#7771)
Diffstat (limited to 'util')
-rwxr-xr-xutil/bump_version.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/util/bump_version.sh b/util/bump_version.sh
index e4380cfe5..ad1c9e1cd 100755
--- a/util/bump_version.sh
+++ b/util/bump_version.sh
@@ -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
-