blue-build / modules

BlueBuild standard modules used for building your Atomic Images
Apache License 2.0
24 stars 25 forks source link

feat: flatpaksync submodule #62

Closed lucasvsr closed 10 months ago

lucasvsr commented 10 months ago

flatpaksync submodule

The flatpaksync submodule can be used to synchronize user-installed flatpaks into a gist or traditional repository.

To activate it, simply follow the example below:

Example configuration

- type: bling
  # ...other submodules...
  - flatpaksync

Once the submodule is activated, users can create a file $HOME/.config/flatpaksync/env informing the repository that will be used to synchronize their apps in the POSIX standard:

GIST_REPO=<YOUR_REPO>

If the user has not yet installed their flatpaks, has already done the step above and has a flatpak.list file in the repository, simply use the flatpakcheckout binary to perform the installation and start the synchronization.

It is important to note that this submodule will NOT enable Flathub. If your applications come from there, you will need to enable Flathub before running it.

If the user has already configured their repository in the $HOME/.config/flatpaksync/env file but already has their flatpaks installed, simply create the $HOME/.config/flatpaks.user.installed file to start the synchronization.

xynydev commented 10 months ago

Will look closer at this and the other flatpak-related PR probably tomorrow, but

lucasvsr commented 10 months ago

Will look closer at this and the other flatpak-related PR probably tomorrow, but

  • Why just gist, why not just a raw URL to a file that could be anywhere?
  • Since this takes in no recipe.yml configuration, shouldn't this be inside the bling module and not a module unto itself?

Okay, I'm waiting for the review.

About the questions:

lucasvsr commented 10 months ago

Done, @xynydev, refactoring available for review.

xynydev commented 10 months ago

With 6fdfffc and 462a12f I moved the documentation for flatpaksync to the bling module's README such that it shows up on the ublue website.

xynydev commented 10 months ago

Does the new documentation look good? I'm ready to merge whenever. Actually, it'll take a while for ublue-os/website to even pick this up, so I'll just merge, and we'll change the docs if there's errors, alright,