Skip to content

Commit 226bf8b

Browse files
cpbasfan5
authored andcommittedOct 16, 2018
Add release information to appdata file (#7771)
1 parent 40ab3e0 commit 226bf8b

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed
 

Diff for: ‎misc/net.minetest.minetest.appdata.xml

+3
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@
5555
</provides>
5656
<translation type="gettext">minetest</translation>
5757
<update_contact>sfan5@live.de</update_contact>
58+
<releases>
59+
<release date="2018-06-10" version="0.4.17.1"/>
60+
</releases>
5861
</component>

Diff for: ‎util/bump_version.sh

+8-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,21 @@ prompt_for_number() {
1717
# On a release the following actions are performed
1818
# * DEVELOPMENT_BUILD is set to false
1919
# * android versionCode is bumped
20+
# * appdata release version and date are updated
2021
# * Commit the changes
2122
# * Tag with current version
2223
perform_release() {
2324
sed -i -re "s/^set\(DEVELOPMENT_BUILD TRUE\)$/set(DEVELOPMENT_BUILD FALSE)/" CMakeLists.txt
2425

2526
sed -i -re "s/versionCode [0-9]+$/versionCode $NEW_ANDROID_VERSION_CODE/" build/android/build.gradle
2627

27-
git add -f CMakeLists.txt build/android/build.gradle
28+
sed -i '/\<release/s/\(version\)="[^"]*"/\1="'"$RELEASE_VERSION"'"/' misc/net.minetest.minetest.appdata.xml
29+
30+
RELEASE_DATE=`date +%Y-%m-%d`
31+
32+
sed -i 's/\(<release date\)="[^"]*"/\1="'"$RELEASE_DATE"'"/' misc/net.minetest.minetest.appdata.xml
33+
34+
git add -f CMakeLists.txt build/android/build.gradle misc/net.minetest.minetest.appdata.xml
2835

2936
git commit -m "Bump version to $RELEASE_VERSION"
3037

@@ -128,4 +135,3 @@ echo "New version: $NEXT_VERSION"
128135
########################
129136

130137
back_to_devel
131-

0 commit comments

Comments
 (0)