Skip to content

Commit b041f26

Browse files
author
arch
committed
update flatpak instructions
1 parent 7f519c9 commit b041f26

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ funscript_actions.csv
1414
linuxdeploy*.AppImage
1515
build-dir
1616
.flatpak-builder
17+
repo

build_flatpak.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ sudo sysctl kernel.unprivileged_userns_clone=1
44
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
55
# flatpak install flathub org.freedesktop.Platform//21.08 org.freedesktop.Sdk//21.08
66
flatpak install org.gnome.Platform//3.38 org.gnome.Sdk//3.38
7-
flatpak-builder build-dir org.flatpak.PythonFunscriptEditor.json --force-clean
7+
flatpak-builder --repo=repo --force-clean build-dir org.flatpak.PythonFunscriptEditor.json

contrib/flatpak/README.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,26 @@
11
# Flatpak
22

3-
## Cheatsheet
3+
## Build Flatpak from Source
4+
5+
Run in project root:
46

57
```bash
68
./build_flatpak.sh
7-
flatpak-builder --run build-dir org.flatpak.PythonFunscriptEditor.json /bin/bash
8-
flatpak-builder --run build-dir org.flatpak.PythonFunscriptEditor.json runner.sh
9+
```
10+
11+
To verify that the build was successful, run the following:
12+
13+
```bash
14+
flatpak --user remote-add --no-gpg-verify local-repo repo
15+
flatpak --user install local-repo org.flatpak.PythonFunscriptEditor
16+
flatpak run org.flatpak.PythonFunscriptEditor
17+
flatpak --user remote-delete local-repo
18+
```
19+
20+
An other option is to use `flatpak-builder` to install the application.
21+
22+
```
23+
flatpak-builder --user --install --force-clean build-dir org.flatpak.PythonFunscriptEditor.json
24+
flatpak run org.flatpak.PythonFunscriptEditor
25+
flatpak uninstall org.flatpak.PythonFunscriptEditor
926
```

0 commit comments

Comments
 (0)