Skip to content

Commit

Permalink
Add release information to appdata file (#7771)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpba authored and sfan5 committed Oct 16, 2018
1 parent 40ab3e0 commit 226bf8b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions misc/net.minetest.minetest.appdata.xml
Expand Up @@ -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>
10 changes: 8 additions & 2 deletions util/bump_version.sh
Expand Up @@ -17,14 +17,21 @@ 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() {
sed -i -re "s/^set\(DEVELOPMENT_BUILD TRUE\)$/set(DEVELOPMENT_BUILD FALSE)/" CMakeLists.txt

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"

Expand Down Expand Up @@ -128,4 +135,3 @@ echo "New version: $NEXT_VERSION"
########################

back_to_devel

0 comments on commit 226bf8b

Please sign in to comment.