Skip to content

Commit

Permalink
fix: update bazzite to always get the latest stable release. close #1306
Browse files Browse the repository at this point in the history


Add the option to choose KDE or GNOME editions.
  • Loading branch information
flexiondotorg committed Jun 25, 2024
1 parent a85bb08 commit 7afab97
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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}"
}

Expand Down

0 comments on commit 7afab97

Please sign in to comment.