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
Solution
you'd need a systemd service for that
Was this page helpful?