1FLATPAK BUILD-INIT(1)         flatpak build-init         FLATPAK BUILD-INIT(1)
2
3
4

NAME

6       flatpak-build-init - Initialize a build directory
7

SYNOPSIS

9       flatpak build-init [OPTION...] DIRECTORY APPNAME SDK RUNTIME [BRANCH]
10

DESCRIPTION

12       Initializes a directory for building an application.  DIRECTORY is the
13       name of the directory.  APPNAME is the application id of the app that
14       will be built.  SDK and RUNTIME specify the sdk and runtime that the
15       application should be built against and run in.
16
17       The result of this command is that a metadata file is created inside
18       the given directory. Additionally, empty files and var subdirectories
19       are created.
20
21       It is an error to run build-init on a directory that has already been
22       initialized as a build directory.
23

OPTIONS

25       The following options are understood:
26
27       -h, --help
28           Show help options and exit.
29
30       --arch=ARCH
31           The architecture to use.
32
33       -v, --var=RUNTIME
34           Initialize var from the named runtime.
35
36       -w, --writable-sdk
37           Initialize /usr with a copy of the sdk, which is writable during
38           flatpak build. This can be used if you need to install build tools
39           in /usr during the build. This is stored in the usr subdirectory of
40           the app dir, but will not be part of the final app.
41
42       --tag=TAG
43           Add a tag to the metadata file. This option can be used multiple
44           times.
45
46       --sdk-extension=EXTENSION
47           When using --writable-sdk, in addition to the sdk, also install the
48           specified extension. This option can be used multiple times.
49
50       --extension=NAME=VARIABLE[=VALUE]
51           Add extension point info.
52
53       --sdk-dir
54           Specify a custom subdirectory to use instead of usr for
55           --writable-sdk.
56
57       --update
58           Re-initialize the sdk and var, don't fail if already initialized.
59
60       --base=APP
61           Initialize the application with files from another specified
62           application.
63
64       --base-version=VERSION
65           Specify the version to use for --base. If not specified, will
66           default to "master".
67
68       --base-extension=EXTENSION
69           When using --base, also install the specified extension from the
70           app. This option can be used multiple times.
71
72       --type=TYPE
73           This can be used to build different types of things. The default is
74           "app" which is a regular app, but "runtime" creates a runtime based
75           on an existing runtime, and "extension" creates an extension for an
76           app or runtime.
77
78       --extension-tag=EXTENSION_TAG
79           If building an extension, the tag to use when searching for the
80           mount point of the extension.
81
82       --verbose
83           Print debug information during command processing.
84
85       --ostree-verbose
86           Print OSTree debug information during command processing.
87

EXAMPLES

89       $ flatpak build-init /build/my-app org.gnome.Sdk org.gnome.Platform
90       3.16
91

SEE ALSO

93       flatpak(1), flatpak-build(1), flatpak-build-finish(1), flatpak-build-
94       export(1)
95
96
97
98flatpak                                                  FLATPAK BUILD-INIT(1)
Impressum