examples
examples copied to clipboard
gtk-rs examples in a flatpak
I spend a couple of days figuring out how to these examples distributed via a flatpak. It is working. I'll probably record another screencast and put it up on YouTube. Here are some quick notes.
Install Flatpak if not installed. On Fedora, this is:
sudo dnf install flatpak
Install the gtk-rs-examples:
sudo flatpak install https://s3.amazonaws.com/ctaggart/flatpak/gtk-rs-examples.flatpakref
See what is installed and run it:
flatpak list
flatpak run org.gtkrs.GtkTest
try the other examples:
flatpak run --command=sh org.gtkrs.GtkTest
cd /app/bin
https://twitter.com/cmr0n/status/897069438918381572 https://youtu.be/ReMj_c1EEGM
we have a basic example of how to use Flatpak to package a GTK application here https://github.com/flatpak/flatpak-builder-tools/tree/master/cargo
I can add the same example to this repository as well, not sure if it's worth it as it's more related to Flatpak than GTK-rs