Warning, /education/gcompris/platforms/flatpak/README is written in an unsupported language. File is not indexed.

0001 # Documentation of a way to build a flatpak
0002 
0003 First install flatpak as documented on http://flatpak.org/
0004 
0005 This approach is based on the ability of GCompris on linux to be build
0006 as a standalone.  It will thus package the libraries comming from the
0007 Qt version used at GCompris build time. Latter on if flatpak is
0008 successful we can expect that there will be a Qt flatpak runtine to
0009 use instead.
0010 
0011 # Build GCompris to be ready for bunding
0012 cd ~/Projets/gcompris/gcompris-kde
0013 cd build
0014 cmake -DBUILD_STANDALONE=True  ..
0015 make
0016 make package
0017 
0018 # Prepare the flatpak
0019 cd ~/Projets/gcompris/flatpak
0020 mkdir gcompris
0021 mkdir gcompris/export
0022 mkdir gcompris/files
0023 rsync -a ~/Projets/gcompris/gcompris-kde/build/_CPack_Packages/Linux/STGZ/gcompris-qt-0.60-Linux/ gcompris/files
0024 cp ~/Projets/gcompris/gcompris-kde/gcompris-appdata.xml gcompris/export/net.gcompris.GCompris.appdata.xml
0025 
0026 echo '[Application]
0027 name=net.gcompris.GCompris
0028 runtime=org.freedesktop.Platform/x86_64/1.4
0029 command=gcompris-qt.sh
0030 
0031 [Context]
0032 shared=network;ipc;
0033 sockets=x11;wayland;pulseaudio;session-bus;
0034 devices=dri;
0035 filesystems=host;' > gcompris/metadata
0036 
0037 # Build the flatpak
0038 flatpak build-export flatpak-repo gcompris
0039 flatpak build-update-repo --title="GCompris" flatpak-repo
0040 
0041 # Test it locally
0042 flatpak --user remote-add --no-gpg-verify gcompris-repo flatpak-repo
0043 flatpak --user install gcompris-repo net.gcompris.GCompris
0044 flatpak run net.gcompris.GCompris
0045 flatpak --user remote-delete gcompris-repo
0046 
0047 # Upload the flatpak
0048 rsync -az flatpak-repo gcompris.net:/var/www/
0049 
0050 # Test it from the remote
0051 flatpak --user remote-add --no-gpg-verify gcompris-repo http://gcompris.net/flatpak-repo
0052 flatpak --user install gcompris-repo net.gcompris.GCompris
0053 flatpak run net.gcompris.GCompris
0054 
0055