How to flatpak?

Attempted to flatpak my app today. First attempt didn’t go so well… although I’m not very good with creating these new package formats. (such as Snap etc)

paging @paperdigits

1 Like

Hey @DylanC,

I guess I’m the flatpak guy around here.

Your source definition is not correct. You need to specific a git hash, and use URL, not path:

  "sources": [                
 "type": "git", 
"url": "", 
"commit": "10506de9"

Sorry for the sloppy formatting, I’m on mobile.

1 Like

Oh no problem. I’ll try that. Afterwards I will look to include graphicsmagick via modules (I guess)

I’ll see if I can help

1 Like

I’ve added graphicsmagick as a module now. Seems to download and try to compile but not detect a compiler.

configuring GraphicsMagick 1.3.29
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking whether build environment is sane… yes
checking for a BSD-compatible install… /usr/bin/install -c
checking for a thread-safe mkdir -p… /usr/bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… no
checking whether make supports nested variables… no
checking whether make supports nested variables… (cached) no
checking for style of include used by make… none
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: in /run/build/graphicsmagick/_flatpak_build': configure: error: no acceptable C compiler found in $PATH Seeconfig.log’ for more details
Error: module graphicsmagick: Child process exited with code 1

Do I need to add gcc as a module?

No, you shouldn’t need to add GCC. Are you using flatoak-builder?

Yes, I’m using flatpak builder in the terminal.

We now have a flatpak created thanks to a contributor. :100:

1 Like