PDF4QT icon indicating copy to clipboard operation
PDF4QT copied to clipboard

Can this program be submitted to flathub for flatpak?

Open jointri opened this issue 2 years ago • 10 comments

Having your program on flatpak via flathub will give it enormous exposure and it would be great to be able to seamlessly set it up using a program that me and others are already familiar with.

You can find info on submitting application here: https://github.com/flathub/flathub/wiki/App-Submission

If you don't wish to do the submission yourself, may I have your permission to pack this up for flathub and flatpak?

jointri avatar Aug 07 '22 14:08 jointri

Hello, I think that is good idea. I will look onto it tomorrow. That is my problem - I am programmer, not marketing specialist, so I do not know how to promote my software. And yes - I want to include also Linux installation, and I do not know hot to create packages for Linux, so flatpack is a good idea. Thank you for this advice.

JakubMelka avatar Aug 07 '22 18:08 JakubMelka

That's awesome to hear man. If you're not already aware of it, conan docs that you use for linux compilation have a section all about flatpak. https://docs.conan.io/en/latest/integrations/deployment/flatpak.html So it should be a piece of cake to pack it up for flatpak once you get the hang of the config files.

If you also wish to have it on the snap store ran by canonical who make ubuntu or maybe even deploy as an appimage, you have that as an option as well. I say the more the merrier. https://docs.conan.io/en/latest/integrations/deployment/snap.html https://docs.conan.io/en/latest/integrations/deployment/appimage.html https://docs.conan.io/en/latest/integrations/deployment.html

ghost avatar Aug 07 '22 22:08 ghost

I use a QBS system to built on linux. I think flatpack cannot use QBS? qmake must be used? I do not know, where to start. I have a few questions:

  • Flatpack downloads my dependencies (if I use the way used above) ?
  • Flatpack builds my source code using qmake?

JakubMelka avatar Aug 08 '22 16:08 JakubMelka

https://docs.flatpak.org/en/latest/manifests.html qmake is one option to build a flatpak app. You can also use meson, cmake, or even traditional autotools. There is a possibility you might have to switch build system because qbs is deprecated anyways by the qt company. I can offer assistance with switch to cmake. You don't have to use qmake, it's just one option. Flatpak will handle all dependencies for you and all you have to do is tell flatpak the app permissions and what dependencies are required. The buildbot will construct it for you and do all the complicated work itself. You should fork https://github.com/flathub/flathub and check out other pull requests here: https://github.com/flathub/flathub/pulls to get the idea of how to submit your app to flathub. You can have it built and tested entirely through github.

ghost avatar Aug 08 '22 17:08 ghost

If this one is to be any indication, I think you CAN use qbs with flatpak. https://github.com/flathub/flathub/pull/654

ghost avatar Aug 08 '22 17:08 ghost

OK, tommorrow, I will try to do some basic initialisation.

JakubMelka avatar Aug 08 '22 17:08 JakubMelka

May I have your permission to write up a flatpak for you and make a pull request?

ghost avatar Aug 08 '22 17:08 ghost

@JakubMelka What I am offering to do is write up the xml/json files on github that flathub-builder will use and send a PR to flathub github repo. It's actually pretty simple to build for flatpak, don't need to have linux installed at all.

ghost avatar Aug 08 '22 17:08 ghost

Hello, I think it will be best solution (and I will be happy if you do it). Commits to the repository PDF4QT require the signing of the CLA, but this is another repository, so I think it is not needed. However, I will then need access to the repository - if some changes are needed (for example, I would like to add description and screenshots of the application).

I have four GUI applications, can flatpack create icons and shortcuts for them?

Thank you!

JakubMelka avatar Aug 09 '22 06:08 JakubMelka

I would honestly suggest asking on https://discourse.flathub.org/ for any questions about flatpak who may know more than I do about how flatpak works.

ghost avatar Aug 09 '22 10:08 ghost

PDF4QT is published on flatpak:

https://flathub.org/apps/io.github.JakubMelka.Pdf4qt

JakubMelka avatar Sep 18 '23 17:09 JakubMelka