mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-07 13:58:03 +00:00
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:
8
build.sh
8
build.sh
@@ -11,3 +11,11 @@ echo "---"
|
||||
|
||||
# install yafti to install flatpaks on first boot, https://github.com/ublue-os/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
|
||||
|
||||
Reference in New Issue
Block a user