Is it posstible to install local flatpak?

There's a flatpak not on flathub, so I wrote a script try to do that manually, but it didn't show up in the system. Is this the right way to do it?
#!/usr/bin/env bash

set -oue pipefail

mkdir /tmp/some_flatpak
cd /tmp/some_flatpak

wget "$(curl -s https://api.github.com/repos/some_flatpak_repo/releases/latest | grep -oP '"browser_download_url": "\K[^"]+' | grep 'Linux.flatpak')"

flatpak install -y --bundle ./*.flatpak
#!/usr/bin/env bash

set -oue pipefail

mkdir /tmp/some_flatpak
cd /tmp/some_flatpak

wget "$(curl -s https://api.github.com/repos/some_flatpak_repo/releases/latest | grep -oP '"browser_download_url": "\K[^"]+' | grep 'Linux.flatpak')"

flatpak install -y --bundle ./*.flatpak
Solution:
you'd need a systemd service for that
Jump to solution
4 Replies
xyny
xyny3d ago
flatpaks install in such a way that it is not normally possible to bundle them in the image that's why our flatpak module installs them post-boot
Solution
xyny
xyny3d ago
you'd need a systemd service for that
xyny
xyny3d ago
another option is creating a custom flatpak installation directory that's not in /var/, but those flatpaks wouldn't be able to be managed by the user at all this is something we could technically add into default-flatpaks@v2 ig
OceanBby
OceanBbyOP3d ago
Thanks! I'll try this way maybe

Did you find this page helpful?