Install flatpak if your distro doesn't include it.
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install -y flathub org.flatpak.BuilderLint metadata manifest
flatpak run --command=flatpak-builder-lint org.flatpak.Builder appstream com.fastmail.Fastmail.metainfo.xmlCreate build
flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir com.fastmail.Fastmail.ymlPreview store listing
gnome-software --show-metainfo com.fastmail.Fastmail.metainfo.xml