Modify release job and correct metainfo (#509)

Add updating the release in the metainfo file using appstreamcli

---------

Co-authored-by: Milkfat32 <milkfat32@github.com>
This commit is contained in:
Milkfat32 2024-06-28 07:52:40 +02:00 committed by GitHub
parent f37f42f779
commit 51a0bb1100
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 24 additions and 23 deletions

View file

@ -41,6 +41,9 @@ jobs:
with:
toolchain: stable
- name: Install Appstreamcli
run: sudo apt-get update && sudo apt-get install -y appstream
- name: Bump Version
id: version_bump
run: |
@ -51,6 +54,9 @@ jobs:
cd ./src-tauri
cargo generate-lockfile
echo "new_tag=v${NEW_VERSION}" >> $GITHUB_OUTPUT
echo -e "---\nVersion: $NEW_VERSION\nDate: $(date +'%Y-%m-%d')\n---" > metadata/news.yaml
appstreamcli news-to-metainfo metadata/news.yaml metadata/dev.opengoal.OpenGOAL.appdata.xml
rm metadata/news.yaml
- name: Commit Version Bump
uses: EndBug/add-and-commit@v9

View file

@ -1,38 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8"?>
<component type="desktop-application">
<id>dev.opengoal.OpenGOAL</id>
<name>OpenGOAL</name>
<summary>Launcher for the OpenGOAL Project to simplify usage and installation</summary>
<developer_name>OpenGOAL Contributors</developer_name>
<metadata_license>CC0-1.0</metadata_license>
<project_license>ISC License</project_license>
<developer_name>OpenGOAL Contributors</developer_name>
<supports>
<control>pointing</control>
<control>keyboard</control>
<control>gamepad</control>
</supports>
<launchable type="desktop-id">dev.opengoal.OpenGOAL.desktop</launchable>
<url type="homepage">https://opengoal.dev/</url>
<url type="vcs-browser">https://github.com/open-goal/launcher</url>
<url type="translate">https://crowdin.com/project/opengoal-launcher</url>
<url type="faq">https://opengoal.dev/docs/faq</url>
<url type="contribute">https://opengoal.dev/docs/category/contributing</url>
<url type="contact">https://discord.gg/VZbXMHXzWv</url>
<supports>
<control>pointing</control>
<control>keyboard</control>
<control>gamepad</control>
</supports>
<screenshot>
<image>https://opengoal.dev/assets/images/launcher-install-a-33691bfe513b67a2b35bf13ab298a39e.png</image>
<caption>Play the Jak and Daxter PlayStation 2 classics natively on your computer.</caption>
</screenshot>
<screenshot>
<image>https://opengoal.dev/assets/images/launcher-support-package-6e7fb3e810098907fb6bc7a83b6f91dc.png</image>
<caption>If at any point during the installation something goes wrong and you are going to ask for help or report an issue. Download the Support Package in order to easily give the person helping you everything they could ask for all at once.</caption>
</screenshot>
<launchable type="desktop-id">dev.opengoal.OpenGOAL.desktop</launchable>
<screenshots>
<screenshot>
<image type="source">https://opengoal.dev/assets/images/launcher-install-a-33691bfe513b67a2b35bf13ab298a39e.png</image>
<caption>Play the Jak and Daxter PlayStation 2 classics natively on your computer.</caption>
</screenshot>
<screenshot>
<image type="source">https://opengoal.dev/assets/images/launcher-support-package-6e7fb3e810098907fb6bc7a83b6f91dc.png</image>
<caption>If at any point during the installation something goes wrong and you are going to ask for help or report an issue. Download the Support Package in order to easily give the person helping you everything they could ask for all at once.</caption>
</screenshot>
</screenshots>
<releases>
<release version="2.4.6" date="2024-06-1"/>
</releases>