sudo apt install -y flatpak
sudo apt install -y gnome-software-plugin-flatpak
# stable
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
# beta
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
flatpak install -y flathub org.flatpak.Builder
flatpak install flathub org.freedesktop.Platform//23.08 org.freedesktop.Sdk//23.08
flatpak run org.flatpak.Builder --force-clean --sandbox --user --install --install-deps-from=flathub --ccache --mirror-screenshots-url=https://dl.flathub.org/media/ --repo=repo build com.kjxbyz.PicGuard.yml
flatpak run com.kjxbyz.PicGuard
flatpak run --command=flatpak-builder-lint org.flatpak.Builder manifest com.kjxbyz.PicGuard.yml