Skip to content

Instantly share code, notes, and snippets.

@pojntfx
Last active February 24, 2026 07:11
Show Gist options
  • Select an option

  • Save pojntfx/4f700f8701484f604691f7a99b793040 to your computer and use it in GitHub Desktop.

Select an option

Save pojntfx/4f700f8701484f604691f7a99b793040 to your computer and use it in GitHub Desktop.
Build Flatpak bundle on remote system, download it, install it and run it locally
#!/bin/bash
# flatpak-builder
ssh -p 22220 -t pojntfx@localhost "cd ~/Projects/sessions && flatpak-builder --user --force-clean --disable-rofiles-fuse --repo=repo builddir --install com.pojtinger.felicitas.Sessions.json --disable-updates && flatpak build-bundle repo sessions.flatpak com.pojtinger.felicitas.Sessions" && scp -P 22220 pojntfx@localhost:/home/pojntfx/Projects/sessions/sessions.flatpak /tmp/sessions.flatpak && flatpak install -u -y /tmp/sessions.flatpak && flatpak run com.pojtinger.felicitas.Sessions
# Foundry
ssh -p 22220 -t pojntfx@localhost "cd ~/Projects/sessions && foundry export" && scp -P 22220 pojntfx@localhost:/home/pojntfx/Projects/sessions/.foundry/cache/flatpak/staging/x86_64-main/com.pojtinger.felicitas.Sessions-x86_64.flatpak /tmp/sessions.flatpak && flatpak install -u -y /tmp/sessions.flatpak && flatpak run com.pojtinger.felicitas.Sessions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment