Creates or updates a repository with an application build.
is the location of the repository.
must be a finalized build directory. If
is not specified, it is assumed to be "master".
exists, it is assumed to be an OSTree repository, otherwise a new OSTree repository is created at this location. The repository can be inspected with the
The contents of
are committed on the branch with name
app/APPNAME/ARCH/BRANCH, where ARCH is the architecture of the runtime that the application is using. A commit filter is used to enforce that only the contents of the
subdirectories and the
file are included in the commit, anything else is ignored.
When exporting a flatpak to be published to the internet,
should be specified as a globally unique reverse DNS value to identify the collection of flatpaks this will be added to. Setting a globally unique collection ID allows the apps in the repository to be shared over peer to peer systems without needing further configuration.
The build-update-repo command should be used to update repository metadata whenever application builds are added to a repository.
The following options are understood:
Show help options and exit.
One line subject for the commit message.
Full description for the commit message.
Set as the collection ID of the repository. Setting a globally unique collection ID allows the apps in the repository to be shared over peer to peer systems without needing further configuration. If exporting to an existing repository, the collection ID must match the existing configured collection ID for that repository.
Specify the architecture component of the branch to export. Only host compatible architectures can be specified.
Exclude files matching
from the commit. This option can be used multiple times.
Don't exclude files matching
from the commit, even if they match the
patterns. This option can be used multiple times.
Use the specified filename as metadata in the exported app instead of the default file (called
metadata). This is useful if you want to commit multiple things from a single build tree, typically used in combination with
Use the files in the specified subdirectory as the file contents, rather than the regular
Use the specified ISO 8601 formatted date or NOW, for the current time, in the commit metadata and, if
is used, the appstream data.
Mark the build as end-of-life. REASON is a message that may be shown to users installing this build.
Mark the build as end-of-life. Unlike
--end-of-life, this one takes an ID that supercedes the current one. By the user's request, the application data may be preserved for the new application.
Don't fsync when writing to the repository. This can result in data loss in exceptional situations, but can improve performance when working with temporary or test repositories.
Update the appstream branch after the build.
Don't update the summary file after the new commit is added. This means the repository will not be useful for serving over http until build-update-repo has been run. This is useful is you want to do multiple repo operations before finally updating the summary.
Sign the commit with this GPG key. This option can be used multiple times.
GPG Homedir to use when looking for keyrings
Export a runtime instead of an app (this uses the usr subdir as files).
Print debug information during command processing.
Print OSTree debug information during command processing.
$ flatpak build-export ~/repos/gnome-calculator/ ~/build/gnome-calculator/ org.gnome.Calculator
Metadata Total: 605
Metadata Written: 5
Content Total: 1174
Content Written: 1
Content Bytes Written: 305