Skip to content

Instantly share code, notes, and snippets.

@nullx5
Last active March 19, 2025 09:56
Show Gist options
  • Save nullx5/a62792285eba2c3e1d9dc7123a4cc8d7 to your computer and use it in GitHub Desktop.
Save nullx5/a62792285eba2c3e1d9dc7123a4cc8d7 to your computer and use it in GitHub Desktop.

https://docs.flathub.org/docs/for-app-authors/submission

https://docs.flatpak.org/es/latest/first-build.html

instalar flatpak ubuntu

instalar el builder flatpak 2 metodos

  • sudo apt install flatpak-builder

  • flatpak install -y flathub org.flatpak.Builder

esqueleto de app python

hello-world-flatpak/
├── files/
│   └── hello-world.py
└── manifest.json

install the Flathub repository userwide

construir paquete a partir del manifiesto genera un directorio build-dir

  • flatpak-builder --force-clean build-dir manifest.json o .yml

  • 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 builddir manifest.json o .yml

  • flatpak-builder --force-clean --user --install-deps-from=flathub --repo=repo --install builddir org.flatpak.Hello.yml

correr localmente

  • flatpak run [app id]

Subir a flathub

  • Fork the Flathub repository on GitHub with "Copy the master branch only" unchecked.

  • git clone --branch=new-pr [email protected]:your_github_username/flathub.git && cd flathub

  • git checkout -b my-app-submission new-pr

  • warning Please do not open the PR against the master base branch of flathub/flathub repository.

  • Now open a pull request against the new-pr base branch on GitHub. The title of the PR should be "Add org.example.MyAwesomeApp".

Share the application manualmente sin flathub

Ejemplo cartero flatpak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment