https://docs.flathub.org/docs/for-app-authors/submission
https://docs.flatpak.org/es/latest/first-build.html
-
sudo apt install flatpak
-
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
-
sudo apt install flatpak-builder
-
flatpak install -y flathub org.flatpak.Builder
hello-world-flatpak/
├── files/
│ └── hello-world.py
└── manifest.json
- flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
-
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
- flatpak run [app id]
-
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".
-
flatpak build-bundle repo hello.flatpak org.flatpak.Hello --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo
-
flatpak install --user hello.flatpak