Man page - flatpak-build-finish(1)
Packages contas this manual
- flatpak-update(1)
- flatpak-ps(1)
- flatpak-document-unexport(1)
- flatpak-build-import-bundle(1)
- flatpak-repo(1)
- flatpak-build-init(1)
- flatpak-flatpakref(5)
- flatpak-enter(1)
- flatpak-spawn(1)
- flatpak-build-update-repo(1)
- flatpak-build-export(1)
- flatpak-config(1)
- flatpakrepo(5)
- flatpak-make-current(1)
- flatpak-document-info(1)
- flatpak-permission-set(1)
- flatpak-run(1)
- flatpak-permission-reset(1)
- flatpak-repair(1)
- flatpak-remote-ls(1)
- flatpak-remote-info(1)
- flatpak-remote-delete(1)
- flatpakref(5)
- flatpak-search(1)
- flatpak-kill(1)
- flatpak-document-export(1)
- flatpak-remote-add(1)
- flatpak-build-bundle(1)
- flatpak-uninstall(1)
- flatpak-permission-show(1)
- flatpak-info(1)
- flatpak-remotes(1)
- flatpak-remote(5)
- flatpak-create-usb(1)
- flatpak-build-finish(1)
- flatpak-installation(5)
- flatpak-pin(1)
- flatpak-permissions(1)
- flatpak-build-sign(1)
- flatpak-install(1)
- flatpak-mask(1)
- flatpak-documents(1)
- flatpak-build-commit-from(1)
- flatpak(1)
- flatpak-flatpakrepo(5)
- flatpak-permission-remove(1)
- flatpak-list(1)
- flatpak-remote-modify(1)
- flatpak-override(1)
- flatpak-history(1)
- flatpak-build(1)
- flatpak-metadata(5)
apt-get install flatpak
Manual
| FLATPAK BUILD-FINIS(1) | flatpak build-finish | FLATPAK BUILD-FINIS(1) |
NAME
flatpak-build-finish - Finalize a build directory
SYNOPSIS
flatpak build-finish [OPTION...] DIRECTORY
DESCRIPTION
Finalizes a build directory, to prepare it for exporting. DIRECTORY is the name of the directory.
The result of this command is that desktop files, icons, D-Bus service files, and AppStream metainfo files from the files subdirectory are copied to a new export subdirectory. In the metadata file, the command key is set in the [Application] group, and the supported keys in the [Environment] group are set according to the options.
As part of finalization you can also specify permissions that the app needs, using the various options specified below. Additionally during finalization the permissions from the runtime are inherited into the app unless you specify --no-inherit-permissions
You should review the exported files and the application metadata before creating and distributing an application bundle.
It is an error to run build-finish on a directory that has not been initialized as a build directory, or has already been finalized.
OPTIONS
The following options are understood:
-h, --help
--command=COMMAND
Note that the command is used when the application is run via flatpak run, and does not affect what gets executed when the application is run in other ways, e.g. via the desktop file or D-Bus activation.
--require-version=MAJOR.MINOR.MICRO
--share=SUBSYSTEM
--unshare=SUBSYSTEM
--socket=SOCKET
The fallback-x11 option makes the X11 socket available only if there is no Wayland socket. This option was introduced in 0.11.3. To support older Flatpak releases, specify both x11 and fallback-x11. The fallback-x11 option takes precedence when both are supported.
--nosocket=SOCKET
--device=DEVICE
--nodevice=DEVICE
--allow=FEATURE
The devel feature allows the application to access certain syscalls such as ptrace(), and perf_event_open().
The multiarch feature allows the application to execute programs compiled for an ABI other than the one supported natively by the system. For example, for the x86_64 architecture, 32-bit x86 binaries will be allowed as well.
The bluetooth feature allows the application to use bluetooth (AF_BLUETOOTH) sockets. Note, for bluetooth to fully work you must also have network access.
The canbus feature allows the application to use canbus (AF_CAN) sockets. Note, for this work you must also have network access.
The per-app-dev-shm feature shares a single instance of /dev/shm between the application, any unrestricted subsandboxes that it creates, and any other instances of the application that are launched while it is running.
--disallow=FEATURE
--filesystem=FS
--nofilesystem=FILESYSTEM
--add-policy=SUBSYSTEM.KEY=VALUE
[Policy subsystem] key=v1;v2;
This option can be used multiple times.
--remove-policy=SUBSYSTEM.KEY=VALUE
--usb=TYPE[:DATA]
all
cls
dev
vnd
It is possible to compose multiple device queries together with the + sign, for example --usb=vnd:0123+dev:4567. The dev filter requires a vnd. Available since 1.15.11.
--nousb=TYPE[:DATA]
--usb-list-file=FILENAME
--usb-list=LIST
--env=VAR=VALUE
--unset-env=VAR
--env-fd=FD
Each environment variable is in the form VAR=VALUE followed by a zero byte. This is the same format used by env -0 and /proc/*/environ.
--own-name=NAME
--talk-name=NAME
--system-own-name=NAME
--system-talk-name=NAME
--persist=FILENAME
--runtime=RUNTIME, --sdk=SDK
--metadata=GROUP=KEY[=VALUE]
--extension=NAME=VARIABLE[=VALUE]
--remove-extension=NAME
--extension-priority=VALUE
--extra-data=NAME:SHA256:DOWNLOAD-SIZE:INSTALL-SIZE:URL
--no-exports
--no-inherit-permissions
-v, --verbose
--ostree-verbose
EXAMPLES
$ flatpak build-finish /build/my-app --socket=x11 --share=ipc --usb=vnd:0fd9
Exporting share/applications/gnome-calculator.desktop Exporting share/dbus-1/services/org.gnome.Calculator.SearchProvider.service More than one executable Using gcalccmd as command Please review the exported files and the metadata
SEE ALSO
flatpak(1), flatpak-build-init(1), flatpak-build(1), flatpak-build-export(1)
| flatpak |