Packaging app for Linux
Flet CLI provides flet build linux
command that allows packaging Flet app into a Linux application.
The command can be run on Linux only.
Prerequisites
GStreamer for Audio
GStreamer libraries must be installed if your Flet app uses Audio
control.
To install minimal set of GStreamer libs on Ubuntu/Debian run the following commands:
apt install libgtk-3-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
To install full set of GStreamer libs:
apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio
See this guide for installing on other Linux distributives.
To build your Flet app that uses Audio
control add --include-packages flet_audio
to flet build
command, for example:
flet build apk --include-packages flet_audio
MPV for Video
libmpv libraries must be installed if your Flet app uses Video
control. On Ubuntu/Debian you can install it with:
sudo apt install libmpv-dev mpv
To build your Flet app that uses Video
control add --include-packages flet_video
to flet build
command, for example:
flet build apk --include-packages flet_video
flet build linux
Creates a Linux application from your Flet app.