fix: only create yafti grp when flatpaks defined (#46)
This commit is contained in:
5
build.sh
5
build.sh
@@ -23,9 +23,12 @@ echo "---"
|
|||||||
pip install --prefix=/usr yafti
|
pip install --prefix=/usr yafti
|
||||||
|
|
||||||
# add a package group for yafti using the packages defined in recipe.yml
|
# add a package group for yafti using the packages defined in recipe.yml
|
||||||
|
flatpaks=$(yq '.flatpaks[]' < /tmp/ublue-recipe.yml)
|
||||||
|
# only try to create package group if some flatpaks are defined
|
||||||
|
if [[ -n "$flatpaks" ]]; then
|
||||||
yq -i '.screens.applications.values.groups.Custom.description = "Flatpaks defined by the image maintainer"' /usr/etc/yafti.yml
|
yq -i '.screens.applications.values.groups.Custom.description = "Flatpaks defined by the image maintainer"' /usr/etc/yafti.yml
|
||||||
yq -i '.screens.applications.values.groups.Custom.default = true' /usr/etc/yafti.yml
|
yq -i '.screens.applications.values.groups.Custom.default = true' /usr/etc/yafti.yml
|
||||||
flatpaks=$(yq '.flatpaks[]' < /usr/etc/ublue-recipe.yml)
|
|
||||||
for pkg in $(echo -e "$flatpaks"); do \
|
for pkg in $(echo -e "$flatpaks"); do \
|
||||||
yq -i ".screens.applications.values.groups.Custom.packages += [{\"$pkg\": \"$pkg\"}]" /usr/etc/yafti.yml
|
yq -i ".screens.applications.values.groups.Custom.packages += [{\"$pkg\": \"$pkg\"}]" /usr/etc/yafti.yml
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user