Update flatpak instructions
gnunn1
5 years ago
0 | 0 |
### Building Tilix Flatpak Bundle
|
1 | 1 |
|
2 | |
This folder contains the scripts required to build Terminix as an Flatpak bundle. Flatpak allows desktop applications to be distributed independently of traditional Linux package managers, applications distributed in this way run in a sandboxed environment. Additional information on Flatpak can be found [here](http://flatpak.org/).
|
|
2 |
This folder contains the scripts required to build Tilix as an Flatpak bundle. Flatpak allows desktop applications to be distributed independently of traditional Linux package managers, applications distributed in this way run in a sandboxed environment. Additional information on Flatpak can be found [here](http://flatpak.org/).
|
3 | 3 |
|
4 | 4 |
The first step to building the Tilix Flatpak Bundle is to install the flatpak framework. This will vary by distribution, see [Getting Flatpak](http://flatpak.org/getting.html).
|
5 | 5 |
|
6 | 6 |
Once that is done you will need to install the Gnome runtimes, this can be done by following the instructions on the [Flatpak wiki](http://docs.flatpak.org/en/latest/getting-setup.html). The specific steps you need are as follows:
|
7 | 7 |
)
|
8 | 8 |
```
|
9 | |
$ flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
10 | |
$ flatpak --user install flathub org.gnome.Platform 3.24
|
11 | |
$ flatpak --user install flathub org.gnome.Sdk 3.24
|
|
9 |
flatpak install flathub org.gnome.Sdk 3.28
|
|
10 |
flatpak install flathub org.gnome.Platform 3.28
|
12 | 11 |
```
|
13 | 12 |
With all the dependencies in place, you can now build the bundle:
|
14 | 13 |
|
15 | 14 |
```
|
16 | |
./build.sh
|
17 | |
flatpak build-bundle ./repo tilix.flatpak com.gexperts.Tilix
|
|
15 |
flatpak-builder --install flatpak-builder com.gexperts.Tilix.yaml
|
18 | 16 |
```
|
|
17 |
|
|
18 |
And then run the application:
|
|
19 |
|
|
20 |
```
|
|
21 |
flatpak run com.gexperts.Tilix
|
|
22 |
```⏎
|
0 | |
#! /bin/sh
|
1 | |
|
2 | |
BUILD_DIR=$PWD/builddir
|
3 | |
JSON=com.gexperts.Tilix.json
|
4 | |
REPO=$PWD/repo
|
5 | |
|
6 | |
./clean.sh
|
7 | |
|
8 | |
echo "Building with flatpak-builder..."
|
9 | |
flatpak-builder --repo=$REPO $BUILD_DIR $JSON
|
10 | |
|
11 | |
echo "Adding repo..."
|
12 | |
flatpak --user remote-add --no-gpg-verify tilix-repo $REPO
|
13 | |
|
14 | |
echo "Installing Tilix..."
|
15 | |
flatpak --user install tilix-repo com.gexperts.Tilix⏎
|
0 | |
#! /bin/sh
|
1 | |
|
2 | |
BUILD_DIR=$PWD/builddir
|
3 | |
JSON=com.gexperts.Tilix.json
|
4 | |
REPO=$PWD/repo
|
5 | |
|
6 | |
echo "Uninstalling Tilix..."
|
7 | |
flatpak --user uninstall com.gexperts.Tilix
|
8 | |
|
9 | |
echo "Removing repo..."
|
10 | |
flatpak --user remote-delete tilix-repo
|
11 | |
|
12 | |
echo "Removing repo..."
|
13 | |
rm -rf $REPO
|
14 | |
|
15 | |
echo "Removing build dir..."
|
16 | |
rm -rf $BUILD_DIR⏎
|
0 | |
#! /bin/sh
|
1 | |
|
2 | |
flatpak run com.gexperts.Tilix⏎
|