mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-06-03 05:25:32 +02:00
chore: Move get_vanillaos function
This commit is contained in:
parent
7cd3e4e669
commit
87c70e10ee
14
quickget
14
quickget
|
@ -1850,13 +1850,6 @@ function get_blendos() {
|
|||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function get_vanillaos() {
|
||||
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_batocera() {
|
||||
local HASH=""
|
||||
local URL="https://mirrors.o2switch.fr/batocera/x86_64/stable/${RELEASE}"
|
||||
|
@ -2852,6 +2845,13 @@ function get_ubuntu() {
|
|||
fi
|
||||
}
|
||||
|
||||
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}"
|
||||
}
|
||||
|
||||
function get_void() {
|
||||
local DATE=""
|
||||
local EDITION="${1:-}"
|
||||
|
|
Loading…
Reference in New Issue
Block a user