2.8 KiB
Publishing apps
Learn how to publish your apps using Flatpak.
Once you feel ready to publish your app to Flathub, or to a self-hosted repository, you can follow this step-by-step guide.
Create a Flatpak manifest
You have to create a Flatpak manifest, similar to the one here.
Find detailed information in the Flatpak documentation.
This is the only code that should be submitted to Flathub.
There will be a new repository created under flathub/app-id that hosts the manifest.
SDK Extension for Swift 6
I recommend using the SDK Extension for building the app. Add the following snippet.
"sdk-extensions": [
"org.freedesktop.Sdk.Extension.swift6"
]
Generate sources for the Swift Package Manager
You cannot access the web while building the app. Therefore, you need to add all the dependencies as modules to the manifest file. This can be automated using the Flatpak builder tool for SPM.
MetaInfo file
In the Flatpak Manifest file, under the build commands, you should add the code to install the app's MetaInfo file. The MetaInfo file is located in the app's main repository (not in the Flathub repository). Take a look at the example here.
Desktop entry file
This line in the example installs the Desktop Entry file. It is located in the main repository.
Check the requirements
Before submitting an app to Flathub, make sure to check the requirements, MetaInfo guidelines, and quality guidelines. Then, test and submit the app following the submission instructions.
Get the badges
Use the Flathub badges to inform users about the simple installation option. Even more assets are available here.