Is there a Flatpak runtime that includes apt? That would enable an easy way to create apps for Endless, similar to Docker.
One could just init a Flatpak app from that runtime and run apt-get install from within it. This app could then be installed from a local Flatpak repository.
No that Im aware of.
There are plans for a debian runtime for flatpak, but that does not exist, and, I dont know if the ‘sdk’ version of it will include apt (Simon McVittie is probably the best guy to ask that).
If you want something like that, you ll probably have to create it yourself
(Actually com.endlessm.Platform includes apt and dpkg, and several flatpaks in Endless OS do work this way, but we don’t recommend basing new apps on com.endlessm.Platform.)
The Spotify flatpak on Flathub uses a similar approach though it unpacks the .deb using ar
and tar
since the GNOME flatpak SDK doesn’t have apt and dpkg. https://github.com/flathub/com.spotify.Client/blob/master/com.spotify.Client.json
1 Like