Upload the game update

Greetings, everyone! The publish my game was ended successfully. But when I got to upload the update on Flathub, something went wrong.

Here is the build’s log:

Here’s the link on manifest:

Here’s the metainfo code:

<?xml version="1.0.1" encoding="UTF-8"?>
<component type="desktop-application">
  <name>Mark versus Paul</name>
  <summary>Casts spells! Dodges enemies! Beat the Boss! Get return the package!</summary>

      This project is the Open-source game, where you can play as the Wizard and does some spells! You have to goes through eight locations. Dodges from enemies and it's bullets. Fast changes between spells and also gets understand which spell you needs to use. And Finally! Get fight with the Final Boss!

  <launchable type="desktop-id">io.github.xolatgames.marknpaul.desktop</launchable>

    <screenshot type="default">

  <url type="homepage">https://xolatgames.itch.io/marknpaul</url>
  <url type="donation">https://boosty.to/xolatgames</url>
  <url type="translate">https://github.com/xolatgames/Mark-versus-Paul/tree/main/Localization</url>
  <url type="vcs-browser">https://github.com/xolatgames/Mark-versus-Paul</url>


  	<release version="1.0.1" date="2024-04-08">
        <p>Greetings, body! After a few month my project get some changes, such as:</p>
          <li>The level's name at the start level has added</li>
          <li>Changes in some textures</li>
          <li>Somersaults does in the right side</li>
          <li>The splash screen has changed</li>
          <li>The Flathub's link has added in the main menu!</li>
          <li>The limits of zombies has added to the graveyard level</li>
          <li>Some fixes in the pre-boss level</li>
          <li>Has added two new cheats</li>
          <li>Has added the OSX version</li>
          <li>Some change in the cave level</li>
    <release version="1.0.0" date="2023-11-14">
        <p>Are you awaiting it for? Release! So much levels, so much monsters, action, reaction, spells, somersaults and... Evil Paul, who stole Mark's package! Pls! Help Mark to return his package! If it no so hard for you!</p>

  <content_rating type="oars-1.0">
    <content_attribute id="violence-cartoon">mild</content_attribute>
    <content_attribute id="violence-fantasy">mild</content_attribute>
    <content_attribute id="language-humor">mild</content_attribute>

And here is the archive’s content:

So, what do I do wrong, bodies? Pls, help me to publish this update!

Just check your metainfo file with the appstream cli (the flatpak must be installed by you):

flatpak run org.freedesktop.appstream.cli validate Mark-versus-Paul-1.0.1.metainfo.xml

or if you already have flatpak-builder installed:

flatpak run --command=appstreamcli org.flatpak.Builder validate Mark-versus-Paul-1.0.1.metainfo.xml

The first line of the xml does not belong to your application but describes the XML-file and shouln’t be updated. Your version is solely defined under <releases>.

Non versioned URL are a bad idea. The content should never change on the other side. If it’s a new version it should be a new URL. (putting the version in the file name is an easy way to do that).
Add files via upload by xolatgames · Pull Request #1 · flathub/io.github.xolatgames.marknpaul · GitHub

The version was intended for the (GitHub) URL of your releases, not that you put the version into all file names. You want to keep the unversioned file names to simplify updates to your manifest (just change the URL & checksum & everything is done).

Thanks so much, cxrvh! It turns out was so simple! You can only envy my inattention.

And, yeap! I just rewrited this:

<?xml version="1.0.1" encoding="UTF-8"?>

To this:

<?xml version="1.0" encoding="UTF-8"?>

And everything works successfully!

Thanks to you, bro! Stay awesome! :innocent::+1:t2:

This post is solved!

This topic was automatically closed after 4 days. New replies are no longer allowed.