Debian Codegraph @

platforms/flatpak/README

raw
1 # Documentation of a way to build a flatpak
2
3 First install flatpak as documented on http://flatpak.org/
4
5 This approach is based on the ability of GCompris on linux to be build
6 as a standalone. It will thus package the libraries comming from the
7 Qt version used at GCompris build time. Latter on if flatpak is
8 successful we can expect that there will be a Qt flatpak runtine to
9 use instead.
10
11 # Build GCompris to be ready for bunding
12 cd ~/Projets/gcompris/gcompris-kde
13 cd build
14 cmake -DBUILD_STANDALONE=True ..
15 make
16 make package
17
18 # Prepare the flatpak
19 cd ~/Projets/gcompris/flatpak
20 mkdir gcompris
21 mkdir gcompris/export
22 mkdir gcompris/files
23 rsync -a ~/Projets/gcompris/gcompris-kde/build/_CPack_Packages/Linux/STGZ/gcompris-qt-0.60-Linux/ gcompris/files
24 cp ~/Projets/gcompris/gcompris-kde/gcompris-appdata.xml gcompris/export/net.gcompris.GCompris.appdata.xml
25
26 echo '[Application]
27 name=net.gcompris.GCompris
28 runtime=org.freedesktop.Platform/x86_64/1.4
29 command=gcompris-qt.sh
30
31 [Context]
32 shared=network;ipc;
33 sockets=x11;wayland;pulseaudio;session-bus;
34 devices=dri;
35 filesystems=host;' > gcompris/metadata
36
37 # Build the flatpak
38 flatpak build-export flatpak-repo gcompris
39 flatpak build-update-repo --title="GCompris" flatpak-repo
40
41 # Test it locally
42 flatpak --user remote-add --no-gpg-verify gcompris-repo flatpak-repo
43 flatpak --user install gcompris-repo net.gcompris.GCompris
44 flatpak run net.gcompris.GCompris
45 flatpak --user remote-delete gcompris-repo
46
47 # Upload the flatpak
48 rsync -az flatpak-repo gcompris.net:/var/www/
49
50 # Test it from the remote
51 flatpak --user remote-add --no-gpg-verify gcompris-repo http://gcompris.net/flatpak-repo
52 flatpak --user install gcompris-repo net.gcompris.GCompris
53 flatpak run net.gcompris.GCompris
54
55