From what I understand by reading the documentation the flatpak build-export command creates a local repository, I have to use the flatpak build-bundle command to create the flatpak package, but I tried command:
error: Refspec 'app/org.tarro.lamiavideoteca.flatpak/x86_64/master' not found
There’s just no one who can tell me how to do the latter. I’m very close to the solution. In short, this is the official website to ask for help on how to create flatpaks… right?
This is a community forum, people will answer when they find the time. You have to be patient.
But you already have the correct command syntax, now you just have to understand the error message, the documentation could be improved in this instance:
flatpak build-bundle LOCATION FILENAME NAME [BRANCH]
LOCATION is the repository from flatpak build-export or from flatpak-builder --repo=<REPO> (your location is the correct one).
FILENAME is just the output filename, whatever you define.
NAME is actually the application id. You just have to enter exactly your id (case-sensitive). Your id doesn’t (& shouldn’t) contain the .flatpak suffix, that’s why your application is not found.
Additionally you could set:
--runtime-repo=URL
The URL for a .flatpakrepo file that contains the information about the repository that supplies the runtimes required by the app.
The documentation I’ve linked (Single-file bundles) contains an example with the correct url to set.
You should sign your bundle with your GPG key but I don’t know the correct procedure for this.
Thank you for answering me. I’m not in a hurry and I thought people were tired of replying to me. I changed the name of the repo to lamiavideotecarepo. I tried with the following command:
error: ‘/home/enrico/MEGA/Informatica/Programming/C/Qt Creator/Linux/LaMiaVideoteca/Setup/Release 2.45/FLATPAK/lamiavideoteca/lamiavideotecarepo’ is not a valid repository
Yet the command I used to create the local repo should be right: `
You have changed the branch name from master to org.tarro.lamiavideoteca. Then you must add it as last parameter to build-bundle (without the brackets).
But you should use a better branch name like stable, main, master or something like that.
Thanks very thanks…May you be blessed…
I’ll have to try it and there will probably be some problems (things like gnome integration) but I’ll look at it calmly… is it normal that the .flatpak weighs only 25 megabytes despite the build-dir weighing about 75 megabytes?
For anyone who sees this post in the future, I’ll recap what I did to compile the .flatpak file.
I created a manifest file in the directory where the binaries related to my program were located which I called org.tarro.lamiavideoteca.yml, inside this file I wrote: