The Godot Barn
Sign in
Sign in
Home
News & updates
Explore
Tutorials
Articles
Snippets
Shaders
Submit content
Sign in to submit content
Give or get help
Questions
Conversations
Coming soon!
Publish your game on Linux with Flathub
4
Description
"## Godot And Linux\r\nOne of the big features of Godot is its portability among several platform : Windows, OSX, Android, .. and Linux.\r\nThe Linux ecosystem is rich, full of wonderful projects supported by dedicated people.\r\n\r\nOne might find it overwhelming at first, but tremendous efforts have been made to make this ecosystem more friendly, organized and accessible. One of them lead to the creation of **Flathub**, a linux application store with *user friendly* support but also, the *security* that goes with *trustful applications distribution system*.\r\n\r\n## What is Flathub ?\r\nAs stated before, Flathub is an [application store for Linux](https:\/\/flathub.org\/about). It is as useful for users as for developers publishing applications on it. Like any respectful store, it provides curation and moderation to insure safety and warn users over the potential risks of an application, meaning that applications published there can be labeled and\/or certified about several aspects : security, privacy, proprietary\/opensource and so on.\r\n\r\nWhen it comes to Godot application, game developers can easily publish their productions over this platform and most importantly, reach a very large user-base willing to provide feedback (and we know how vital this is for us).\r\n\r\nFlathub provides a powerful store integration, allowing automatic updates without having you to care about the specific configuration of the end-user system.\r\n\r\n![Crosswords, a featured game on Flathub, meets the quality guidelines](\/files\/72b36adc-b544-496b-b9c7-567e22a88e0c)\r\n\r\nFrom more information about Flathub, check the [Flathub website](https:\/\/flathub.org) to deep a bit further in the rabbit hole.\r\n\r\n## How to publish on Flathub ?\r\nWhat you need first, as a developer, is to obtain (choose carefully) an application ID, meet the submission requirements (as for any application store) and submit your application to the Flathub. Upon review, your submission can be validated and be ready for distribution. As always, a submission can be rejected with a comprehensive rejection cause allowing you to comply with the standards and requirements of a Flathub submission.\r\n\r\nThe main (one of the possible) workflow to submit\/publish your Godot application to Flathub consists in the following:\r\n\r\n1. Export the PCK File of your project\r\n2. Create branding files like desktop icon, desktop entry, Flathub oriented metainfo files\r\n3. Submit to Flathub.\r\n\r\nOf course, as simple as it looks, the first phase (the initial submission) requires some more effort.\r\n\r\nHopefully, an [extensive blog-post](https:\/\/cassidyjames.com\/blog\/publish-godot-engine-game-flathub-flatpak\/) (provided by [Cassidy James Blaede](https:\/\/cassidyjames.com\/)) is there to clarify all of this. It answers all the questions you might ask about the process by providing a live example.\r\n\r\n#### A Quick Example\r\n\r\n> [!IMPORTANT]\r\n> The following is an excerpt of [Cassidy's blog post](https:\/\/cassidyjames.com\/blog\/publish-godot-engine-game-flathub-flatpak\/). I strongly advise you to read it to fully understand the process.\r\n\r\nEntries to Flathub are called **Flatpak**. \r\n\r\nTo build a Flatpak of a Godot Engine game, we only need three things:\r\n\r\n1. Exported PCK file\r\n2. Desktop Entry, icon, and MetaInfo files\r\n3. Flatpak manifest to put it all together\r\n\r\nThe trick is knowing how and where to provide each of these for the best experience publishing your game (and especially updates) to Flathub. There are a bunch of ways you can do it, but I **strongly** recommend:\r\n\r\n1. Upload your PCK file to a public, versioned URL, e.g. as a source code release artifact.\r\n\r\n2. Include the Desktop Entry, icon, and MetaInfo files in the repo with your game\u2019s source code if it\u2019s open source, or provide them via a dedicated repo, versioned URL, or source code release artifact.\r\nYou can alternatively upload these directly to the Flatpak Manifest repository created by Flathub, but it\u2019s better to keep them with your game\u2019s other files if possible.\r\n\r\n3. Your manifest will live in a dedicated GitHub repo owned by the Flathub org. It\u2019s nice (but not required) to also include a version of your manifest with your game\u2019s source code for easier development and testing."
Comments
Log in to post a comment
Licensed under the CC0 license
See the full license details
Submitted by
Casual Garage Coder
Table of contents
Compatibility
Generic
Tags
Flathub
linux
Share this article
Share on Bluesky
Share on X / Twitter
or share this direct link:
https://thegodotbarn.com/contributions/article/90/publish-your-game-on-linux-with-flathub
Please wait ...
Okay
Okay
No
Yes
Okay