feat: yafti package group for recipe.yml

read .flatpaks[] in recipe.yml
and add declared packages to their own
package group in yafti
This commit is contained in:
ER
2023-04-02 12:24:32 +03:00
parent f9a1561f2c
commit 0cf6b13b6c

View File

@@ -10,4 +10,12 @@ done
echo "---" echo "---"
# install yafti to install flatpaks on first boot, https://github.com/ublue-os/yafti # install yafti to install flatpaks on first boot, https://github.com/ublue-os/yafti
pip install --prefix=/usr yafti pip install --prefix=/usr yafti
# add a package group for yafti using the packages defined in recipe.yml
yq -iy '.screens.applications.values.groups.Custom.description = "Flatpaks defined by the image maintainer"' /etc/yafti.yml
yq -iy '.screens.applications.values.groups.Custom.default = true' /etc/yafti.yml
flatpaks=$(yq '.flatpaks[]' < /etc/ublue-recipe.yml)
for pkg in $flatpaks; do \
yq -iy ".screens.applications.values.groups.Custom.packages += [{'$pkg': '$pkg'}]" /etc/yafti.yml \
done