From 7afab97c633e8bdc0acdd8393af8905527732598 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 25 Jun 2024 09:14:52 +0100 Subject: [PATCH] fix: update bazzite to always get the latest stable release. close #1306 Add the option to choose KDE or GNOME editions. --- quickget | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/quickget b/quickget index 011621827d..11928bf0d5 100755 --- a/quickget +++ b/quickget @@ -629,8 +629,11 @@ function releases_batocera() { } function releases_bazzite() { - #shellcheck disable=SC2046,SC2005 - echo $(web_pipe "https://api.github.com/repos/ublue-os/bazzite/releases" | grep 'download_url' | grep 'sum' | cut -d '/' -f8 | cut -d'v' -f2 | head -n 5) + echo latest +} + +function editions_bazzite() { + echo gnome kde } function releases_biglinux() { @@ -1663,9 +1666,12 @@ function get_batocera() { function get_bazzite() { local HASH="" local ISO="" - local URL="https://github.com/ublue-os/bazzite/releases/download/v${RELEASE}" - ISO=$(web_pipe "https://api.github.com/repos/ublue-os/bazzite/releases" | grep 'download_url' | grep 'sum' | cut -d '"' -f4 | cut -d'.' -f1-5 | grep "${RELEASE}" | cut -d'/' -f9) - HASH=$(web_pipe "${URL}/${ISO}.sha256sum" | grep 'SHA256' | cut -d' ' -f4) + local URL="https://download.bazzite.gg" + case ${EDITION} in + gnome) ISO="bazzite-gnome-stable.iso";; + kde) ISO="bazzite-stable.iso";; + esac + HASH=$(web_pipe "${URL}/${ISO}-CHECKSUM" | cut -d' ' -f1) echo "${URL}/${ISO} ${HASH}" }