Skip to content

Instantly share code, notes, and snippets.

@cho2
Last active November 7, 2018 07:59
Show Gist options
  • Save cho2/5e5c9843e1592bf747c85f70b3ee16ca to your computer and use it in GitHub Desktop.
Save cho2/5e5c9843e1592bf747c85f70b3ee16ca to your computer and use it in GitHub Desktop.
Build Flatpak

Build and install locally

  • flatpak-builder --repo=repo firefox org.mozilla.Firefox.json
  • flatpak build-export repo firefox
  • flatpak --user remote-add --no-gpg-verify --if-not-exists firefox-repo repo
  • flatpak --user install firefox-repo org.mozilla.Firefox
  • flatpak run org.mozilla.Firefox

Bundle

  • flatpak build-bundle repo firefox.flatpak org.mozilla.Firefox
  • flatpak build-import-bundle repo firefox.flatpak

Clean

  • flatpak uninstall --user org.mozilla.Firefox
  • flatpak remote-delete --user firefox-repo

Sign

  • flatpak build-sign repo --gpg-sign=47403B7CA4F1C023BB9B70DF2426DE3CB57A4176 --gpg-homedir=~/flatpak-gpg
  • flatpak build-update-repo repo --gpg-sign=47403B7CA4F1C023BB9B70DF2426DE3CB57A4176 --gpg-homedir=~/flatpak-gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment