Hello everyone. I created a program to catalog the Films that one owns, called LaMiaVideoteca. I’ve ported it to both Windows and Linux. On the latter I can already package it in deb and AppImage. I would now like to package it in FLATPAK (via SNAP I failed). So, I created a folder called lamiavideoteca, inside which I put the executable, the images (which the program needs), the libraries that the application needs, the share folder containing the icon and the file for the shortcut (. Desktop). I generated a org.tarro.lamiavideoteca.yml file in which I put the following code:
The compilation I do from the folder where the org.tarro.lamiavideoteca.yml is located with the flatpak-builder build-dir org.tarro.lamiavideoteca.yml command fails telling me that the Covers and lib directories do not exist, BUT they EXIST. Someone would know how to help me. Thanks for the help.
It doesn’t work either in these two ways. It keeps telling me the folder doesn’t exist. But it exists. In fact the LaMiaVideoteca file is copied, as you can see in the bin folder.
Out of curiosity, I tried to remove the libraries and the Copertine folder to see where the .flatpak file was created. But I noticed that it doesn’t get generated anyway. Can you tell me where I’m going wrong? Thanks to anyone who tries to answer me.
Thanks. I managed to copy the Copertine folder, although unfortunately it is copied without the files it contains. As for lib I will look after I have managed to copy the Copertine folder with all the files it contains.
I’ve noticed that copying every single file at a time works. But I think it’s absurd that for a program that has 30 libraries I have to copy them one by one from code and I can’t copy the entire folder.
You have to define a destination because the sources will be flattened (see Flatpak manifest).
Sources
These contain a pointer to the source that will be extracted into the source directory before the build starts. They can be of several types, distinguished by the type property.
[…]
All sources
[…]
dest (string)
Directory inside the source dir where this source will be extracted.
[…]
Directory sources
type
“dir”
path (string)
The path of a local directory whose content will be copied into the source dir. Note that directory sources don’t currently support caching, so they will be rebuilt each time.
You can inspect the build dir either in the .flatpak-builder/build subfolder (maybe you have to run flatpak-builder with --keep-build-dirs) or enter the build environment with --build-shell=LaMiaVideoteca.