Does Flathub needs to rebuild the flatpak?

It is explicitly written in the documentation that Flathub should not store code :

Under no circumstances should source code be included in the submission. Flathub is not intended to host application source code, including that of any dependencies.

However, it is also written here that not network access during build part of the same page that the way the application is build is limited.

There is no network access during the build process. This means using --share=network inside build-args will not work.

This will not work, at which point ? This will pose a problem for Flathub to build the package or for the publication ?

Should the manifest include how to build the code ? But the PR should not include the code ? Does Flathub have to be able to rebuild the code ?

During building

This will pose a problem for Flathub to build the package or for the publication ?

Both

Should the manifest include how to build the code ?

Yes, and the code should be in a repository or some tarballs that are accessible via URLs. You use the URLs as source: in the manifest along with the build instruction.

But the PR should not include the code ?

Correct

Does Flathub have to be able to rebuild the code ?

Yes, if it is available.

1 Like