List your app in AppCenter and make it accessible from the Applications menu and Dock.
Don't worry about generating Meson snippets, as we'll cover that in the next section. After you select "Generate", you should have two resulting files that you can copy.
First is a MetaInfo file. This file contains all the information needed to list your app in AppCenter. It should look something like this:
<?xml version="1.0" encoding="UTF-8"?>
<summary>Proves that we can use Vala and Gtk</summary>
A quick summary of your app's main selling points and features. Just a couple sentences per paragraph is best
In your project's root, create a new folder called "data", and save your MetaInfo to a new file called "hello-again.metainfo.xml".
For the purposes of this tutorial, screenshots are optional, but they are required for publishing in AppCenter. Screenshots should only show your app on a transparent background and not contain any additional text or illustrations. You can use the
captiontag to provide translatable and accessible descriptions of your screenshots.
<caption>The most important feature of my app</caption>
You can also specify a brand color for your app by adding the
brandingtag inside the
componenttag. Colors must be in hexidecimal, starting with
#. The background will automatically be given a slight gradient in your app's banner.
If you want to monetize your app, you will need to add two keys inside a
customtag inside the
componenttag. Suggested prices should be in whole USD. You also must include your app's AppCenter Stripe key. This is a unique public key for each app and is not the same as your Stripe account's regular public key. You can connect your app to Stripe and receive a new key on the AppCenter Dashboard.
Your app must have a
releasetag for every version you wish to publish in AppCenter. Release notes show up in AppCenter and should be aimed at the people who use your app. Avoid technical language and developer-facing changes and focus more on what people can expect to see in this update.
<release version="1.0.0" date="2022-09-08" urgency="medium">
<li>My app can now do a great new thing</li>
<li>An annoying behavior no longer occurs</li>
This file contains all the information needed to display your app in the Applications Menu and in the Dock. The one generated from AppStream Metainfo Creator looks something like this:
Comment=Proves that we can use Vala and Gtk
Copy the contents of your Desktop Entry and save it to the data folder you created earlier. Name this new file "hello-again.desktop".
Each time we add a new file or make a significant change it's a good idea to commit a new revision and push to GitHub. Keep in mind that this acts as a backup system as well; when we push our work to GitHub, we know it's safe and we can always revert to a known good revision if we mess up later.
Add all of these files to
gitand commit a revision:
git add data/
git commit -am "Add Metadata files"
Now that we've got all these swanky files laying around, we need a way to tell the computer what to do with them. Ready for the next chapter? Let's do this!