Readme.md 1.25 KB
Newer Older
Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
1
2
3
# Flatpak developer environment tool
Flatpak has the low level tool called *flatpak*, and a helper for distributing
and building apps called *flatpak-builder*.
Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
4
5
6
However it's missing a developer tool to develop your application from a
flatpak manifest.

Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
7
This repository is a set of python and bash scripts to cover this case
Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
8

Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
9
10
11
12
# Usage
```bash
source setup-flatpak-dev.sh $development-prefix $source-path $manifest-path
```
Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
13
Where:
Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
14
15
 * development-prefix is a generic folder where this tool will work on, doing
   for example the builds, pulling dependencies and building them locally, etc.
Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
16
17
18
19
20
 * source-path is where your application code is. If this is a direct child of
   development-prefix it will help in the future when we add the ability to
   develop on a library built as part of your app.
 * manifest-path is where the flatpak manifest to build your application is
   located. Usually it follows a name similar to org.gnome.Nautilus.json
Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
21

Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
22
This will download the required SDK and build your application for first
Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
23
24
time. Then it will enter the flatpak build environment where you can freely use
your build system tool to build your app and run it inside the flatpak
Carlos Soriano Sánchez's avatar
Carlos Soriano Sánchez committed
25
26
27
28
29
environment.
You can run the app by just putting the name, and even run under gdb like
```bash
gdb nautilus
```