From 60b8ee886b1e37c286ba9dc478ce7a3e4f594319 Mon Sep 17 00:00:00 2001 From: m2Giles <69128853+m2Giles@users.noreply.github.com> Date: Sun, 21 Apr 2024 21:38:03 -0400 Subject: [PATCH] feat: add a flatpak install for rebasers --- just/bluefin-system.just | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/just/bluefin-system.just b/just/bluefin-system.just index c52a8d8eef2..981f13d6909 100644 --- a/just/bluefin-system.just +++ b/just/bluefin-system.just @@ -160,3 +160,17 @@ dx-group: sudo usermod -aG lxd $USER sudo usermod -aG libvirt $USER @echo "Logout to use docker, incus-admin, lxd, libvirt" + +# Install system flatpaks for rebasers +[private] +install-system-flatpaks: + #!/usr/bin/bash + IMAGE_INFO="/usr/share/ublue-os/image-info.json" + BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO) + if [[ ${BASE_IMAGE_NAME} == 'silverblue' ]]; then + FLATPAKS="bluefin_flatpaks/flatpaks" + elif [[ ${BASE_IMAGE_NAME} == 'kinoite' ]]; then + FLATPAKS="aurora_flatpaks/flatpaks" + fi + FLATPAK_LIST="$(curl https://raw.githubusercontent.com/ublue-os/bluefin/main/${FLATPAKS} | tr '\n' ' ')" + flatpak --system -y install ${FLATPAK_LIST}