Setting "version" field in own repository
Dan Nicholson
dbn at endlessos.org
Tue Oct 12 12:17:53 UTC 2021
If you're not using flat-manager, you need to generate the repo metadata
with flatpak build-update-repo rather than ostree summary. Among other
things, ostree summary won't generate the appstream commits and branches
that the flatpak client expects to find in the repo.
Dan
On Tue, Oct 12, 2021, 4:06 AM Alexander Larsson <alexl at redhat.com> wrote:
> You have to ship an appdata file with the app including the version,
> and then run "flatpak build-update-repo " on the repo, which will
> generate a branch with the combined appdatas for all apps in the repo.
> However, flat-manager should do that for you.
>
> On Tue, Oct 12, 2021 at 10:19 AM Wojciech Fred <wojciech.fred at gmail.com>
> wrote:
> >
> > Hello,
> >
> > I am trying to set up (for my own needs) a flatpack repository. Thanks
> to the project documentation and description of the flat-manager, I was
> able to get everything up and running. I am able to build a package, commit
> and publish it. After adding my own repository as a remote repository on
> the client machine and executing the command:
> >
> > $ flatpack remote-ls | grep my-repo
> >
> > I get the result (I use the sample application from the description on
> Alexander Larsson blog):
> >
> > App com.example.App stable x86_64 my-repo
> app/com.example.App/x86_64/stable 8dd62fc37b01
> org.freedesktop.Platform/x86_64/21.08 1,0 kB 202 bytes
> >
> > but when I asking for app in flathub:
> >
> > $ flatpak remote-ls -d | grep digikam
> > digiKam Photo management org.kde.digikam 7.1.0 stable x86_64 flathub
> app/org.kde.digikam/x86_64/stable 3c6b22716fd8 org.kde.Platform/x86_64/5.15
> 350,7 MB 143,8 MB
> >
> > The difference is in displaying the: version field. The package I have
> built does not have the "version" field. This is my question: at what point
> the building/commiting/publishing process im able to add this field. I'm
> new to ostree (I understand the analogies with the git repository and
> commit storing).
> >
> > I tried:
> >
> > * adding metadata field "version" with command: ostree summary
> --repo=repo -u -m version = "'0.0.1'" before pushing to remote repository
> > * adding information about the release in the appdata.xml file
> > * searched the file
> https://github.com/flathub/org.kde.digikam/blob/master/org.kde.digikam.json
> for any clues
> >
> > Nothing works.
> >
> > Thanks in advance for your help.
> > ---
> > Wojciech F
> > .
> >
>
>
> --
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Alexander Larsson Red Hat, Inc
> alexl at redhat.com alexander.larsson at gmail.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/flatpak/attachments/20211012/57230884/attachment.htm>
More information about the Flatpak
mailing list