Some flathub thoughts

Alexander Larsson alexl at redhat.com
Mon Sep 26 13:51:04 UTC 2016


On mån, 2016-09-26 at 15:43 +0200, Jorge García wrote:
> Hi,
> 
> > Exactly what goes into each repo is completely up to the user to
> > decide. He may have one repo per app, or
> > multiple apps in one repo, depending on his usecase.
> >  
> From a developer perspective having N apps in the same repo seems
> handy. However, for the end user store website, having 1 repo per app
> could help implement some functionalities:
> 
> - Calculate download stats from http server logs
> 
> - Require authentication to download from a repo (useful for app
> purchases)
> 
> - In case is required a manual supervision of the apps before they
> are published or updated in the main store (the repo is updated),
> isolate the reviewing process of different apps
> 
> - Make it easier to unpublish an app from the store

These are not wrong, but I think its also sometimes the case that apps
are related (libreoffice?), or have complexities like plugins, or it
may use branches as tags for older version of the apps. 

So I think is why it makes sense to let the user decide how to split
his stuff. However, for simple use we should probably recommend to use
one repo per app.

> > Another question is how isolated we want the builds to be. Do we
> > run
> > each build in a fresh VM, or do we rely on the sandboxing that
> > flatpak-builder uses? I added a "--sandbox" argument to
> > flatpak-builder which disallows you from specifying
> > break-out-of-sandbox arguments, but the container approach is
> > always
> > less isolated than a full VM, but slower.
>
> Can flatpak apps be build inside docker containers? If so, maybe it
> would be a good idea to publish official flapak-builder-ARCH docker
> images for users to build their apps locally and for the official
> build machine.

Technically I don't think there *should* be anything prohibiting it,
given the right permissions in the docker container. However, I seem to
recall someone trying this and there was some weird interaction. 

So, probably doable, but may require debugging things.

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
       alexl at redhat.com            alexander.larsson at gmail.com 
He's an underprivileged vegetarian firefighter with no name. She's a 
virginal bisexual politician who can talk to animals. They fight crime! 





More information about the xdg-app mailing list