UnleashedRecomp icon indicating copy to clipboard operation
UnleashedRecomp copied to clipboard

Add version info to Flatpak's .metainfo.xml

Open MateusRodCosta opened this issue 8 months ago • 3 comments

Validation

  • [x] I have checked the Issues page to see if my problem has already been reported
  • [x] I have confirmed that this bug does not occur in the original game running on original Xbox 360 hardware

If you have DLC installed, please specify which ones you have.

  • [x] Apotos & Shamar Adventure Pack
  • [x] Chun-nan Adventure Pack
  • [x] Empire City & Adabat Adventure Pack
  • [x] Holoska Adventure Pack
  • [x] Mazuri Adventure Pack
  • [x] Spagonia Adventure Pack

If you have mods enabled, please specify which ones you have.

No response

If you have codes enabled, please specify which ones you have.

No response

Describe the Bug

Currently the version number isn't shown because the release data is not present in .metainfo.xml

This can be fixed by adding the release info from the AppStream sprecification.

This is the specification: https://www.freedesktop.org/software/appstream/docs/sect-Metadata-Releases.html It should be enough to have one entry with the version number and release date for all version in reverse chronological order

Steps to Reproduce

  1. Run flatpak list
  2. Notice how the flatpak has a empty version field
  3. Run flatpak info
  4. Notice again how there will be not version data
  5. Visit KDE Discover or GNOME Software
  6. Notice how it has no version info

Expected Behavior

Assuming the release data is set correctly with the release info for 1.0.0, 1.0.1 and 1.0.2 and all newer versions, flatpak CLI tooling would extract the version from the metadata and the version number would also be shown in any Linux frontend app store.

Footage

N/A. Flatpak-specific

System Specifications

Not very relevant. However a Steam Deck OLED using SteamOS was used.

Additional Context

This is specific to the Flatpak integration with the system and is minor, however this will usually let the user know which version is currently installed (whih is not possible right now) or which version will be installed (although I'm not very sure)

MateusRodCosta avatar Mar 20 '25 16:03 MateusRodCosta

You can actually see which version you have by going into options, and in the bottom right corner.

ghost avatar Mar 20 '25 19:03 ghost

Ah, thanks, didn't notice that it appears in-game, that's useful.

This is much more about the version number being shown on flatpak CLI, KDE Discover and GNOME Software.

Basically, it's a very minor change, just by adding a few tags about version number and release date to the metadata file, that info propagates.

MateusRodCosta avatar Mar 20 '25 19:03 MateusRodCosta

Basically, it's a very minor change, just by adding a few tags about version number and release date to the metadata file, that info propagates.

It's not as minor as it sounds, you'll have to find out how to pull this from the build system, we don't fill in these version numbers into the metadata files. The version number has to be pulled from this file: https://github.com/hedge-dev/UnleashedRecomp/blob/824405b2369eb4f82ce136d86e2dfa2b108050f1/UnleashedRecomp/res/version.txt#L1-L4

DarioSamo avatar Mar 21 '25 01:03 DarioSamo