Skip to content

Commit

Permalink
Merge branch 'master' into almost_final
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit authored Apr 21, 2024
2 parents 80e84ad + 70984df commit 6219aec
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -1604,7 +1604,7 @@ function get_antix() {
function get_archcraft() {
local HASH=""
local URL=""
URL="https://sourceforge.net/projects/archcraft/files/latest/download"
URL="https://sourceforge.net/projects/archcraft/files/${RELEASE}/download"
echo "${URL} ${HASH}"
}

Expand Down Expand Up @@ -1670,12 +1670,9 @@ function get_biglinux() {

function get_blendos() {
local HASH=""
local URL=""
local latest_blendos_release
latest_blendos_release="$(grep "${EDITION}" /tmp/blendos-isos.rss | cut -d '/' -f 9 | sort -nr | head -n 1)"
URL=$(grep "${EDITION}/${latest_blendos_release}" /tmp/blendos-isos.rss | grep -E -o 'https://.*blendOS\.iso')
HASH=$(grep "${EDITION}/${latest_blendos_release}" /tmp/blendos-isos.rss | grep -E -o '[[:alnum:]]{32}')
echo "${URL} ${HASH}"
local ISO="blendos-${RELEASE}-stable-${EDITION}.iso"
local URL="https://mirror.ico277.xyz/blendos/${EDITION}"
echo "${URL}/${ISO} ${HASH}"
}

function get_bodhi() {
Expand Down Expand Up @@ -2673,10 +2670,10 @@ function get_ubuntu() {
}

function get_vanillaos() {
# TODO: Dynamically get the latest release from GitHub
local HASH=$(web_pipe "https://cdn.vanillaos.org/assets/ISO/22.10-r9/VanillaOS-22.10-all.20231009.sha256.txt" | cut_1)
local URL="https://cdn.vanillaos.org/assets/ISO/22.10-r9/VanillaOS-22.10-all.20231009.iso"
echo "${URL} ${HASH}"
local ISO=$(web_pipe "https://api.github.com/repos/Vanilla-OS/live-iso/releases" | grep 'download_url' | grep "${RELEASE}" | head -1 | cut -d'"' -f4)
local HASH_URL=$(echo "${ISO}" | sed s'|\.iso|\.sha256\.txt|g')
local HASH=$(web_pipe "${HASH_URL}" | cut_1)
echo "${ISO} ${HASH}"
}

function get_void() {
Expand Down

0 comments on commit 6219aec

Please sign in to comment.