Skip to content

Commit

Permalink
Merge branch 'merge' into dietpi
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit authored Mar 2, 2023
2 parents 8baa0ec + a358190 commit a1978e7
Showing 1 changed file with 102 additions and 8 deletions.
110 changes: 102 additions & 8 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function pretty_name() {
endeavouros) PRETTY_NAME="EndeavourOS";;
freebsd) PRETTY_NAME="FreeBSD";;
freedos) PRETTY_NAME="FreeDOS";;
fvoid) PRETTY_NAME="F-Void";;
garuda) PRETTY_NAME="Garuda Linux";;
ghostbsd) PRETTY_NAME="GhostBSD";;
kdeneon) PRETTY_NAME="KDE Neon";;
Expand Down Expand Up @@ -186,6 +187,7 @@ function os_support() {
fedora \
freebsd \
freedos \
fvoid \
garuda \
gentoo \
ghostbsd \
Expand Down Expand Up @@ -368,6 +370,14 @@ function releases_freedos() {
echo 1.2 1.3
}

function releases_fvoid() {
echo 20220818 20221021 20221223 20230124 20230222
}

function editions_fvoid() {
echo lxqt
}

function releases_garuda() {
echo latest
}
Expand Down Expand Up @@ -619,11 +629,11 @@ function releases_ubuntu() {
}

function releases_void() {
echo current
echo 20170220 20170825 20171007 20181111 20190217 20190526 20191109 20210218 20210316 20210930 20221001 current
}

function editions_void() {
echo glibc musl xfce-glibc xfce-musl
echo base base-musl cinnamon cinnamon-musl enlightenment enlightenment-musl gnome gnome-musl lxde lxde-musl lxqt lxqt-musl mate mate-musl xfce xfce-musl
}

function releases_windows() {
Expand Down Expand Up @@ -1244,6 +1254,25 @@ function get_freedos() {
echo "${URL}/${ISO} ${HASH}"
}

function get_fvoid() {
local HASH=""
local ISO=""
case ${RELEASE} in
20220818)
URL="https://sourceforge.net/projects/f-void/files/18_08_2022/void-live-x86_64-20220818-lxqt.iso/download";;
20221021)
URL="https://sourceforge.net/projects/f-void/files/21_10_2022/fvoid-live-x86_64-20221021_2-lxqt.iso/download";;
20221223)
URL="https://sourceforge.net/projects/f-void/files/23_12_2022/fvoid-live-x86_64-20221223-lxqt.iso/download";;
20230124)
URL="https://sourceforge.net/projects/f-void/files/24_01_2023/fvoid-live-x86_64-20230124-lxqt.iso/download";;
20230222)
URL="https://sourceforge.net/projects/f-void/files/22_02_2023/fvoid-live-x86_64-20230222-lxqt.iso/download";;
esac
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}

function get_garuda() {
local EDITION="${1:-}"
local HASH=""
Expand Down Expand Up @@ -1674,14 +1703,25 @@ function get_void() {
local EDITION="${1:-}"
local HASH=""
local ISO=""
local URL="https://alpha.de.repo.voidlinux.org/live/current"

local URL="https://alpha.de.repo.voidlinux.org/live/${RELEASE}"
DATE=$(wget -q -O- "${URL}/sha256sum.txt" | head -n1 | cut -d'.' -f1 | cut -d'-' -f4)
case ${EDITION} in
glibc) ISO="void-live-x86_64-${DATE}-base.iso";;
musl) ISO="void-live-x86_64-musl-${DATE}-base.iso";;
xfce-glibc) ISO="void-live-x86_64-${DATE}-xfce.iso";;
xfce-musl) ISO="void-live-x86_64-musl-${DATE}-xfce.iso";;
cinnamon) ISO="void-live-x86_64-${RELEASE}-cinnamon.iso";;
cinnamon-musl) ISO="void-live-x86_64-musl-${RELEASE}-cinnamon.iso";;
enlightenment) ISO="void-live-x86_64-${RELEASE}-enlightenment.iso";;
enlightenment-musl) ISO="void-live-x86_64-musl-${RELEASE}-enlightenment.iso";;
gnome) ISO="void-live-x86_64-${RELEASE}-gnome.iso";;
gnome-musl) ISO="void-live-x86_64-musl-${RELEASE}-gnome.iso";;
lxde) ISO="void-live-x86_64-${RELEASE}-lxde.iso";;
lxde-musl) ISO="void-live-x86_64-musl-${RELEASE}-lxde.iso";;
lxqt) ISO="void-live-x86_64-${RELEASE}-lxqt.iso";;
lxqt-musl) ISO="void-live-x86_64-musl-${RELEASE}-lxqt.iso";;
mate) ISO="void-live-x86_64-${RELEASE}-mate.iso";;
mate-musl) ISO="void-live-x86_64-musl-${RELEASE}-mate.iso";;
xfce) ISO="void-live-x86_64-${RELEASE}-xfce.iso";;
xfce-musl) ISO="void-live-x86_64-musl-${RELEASE}-xfce.iso";;
base) ISO="void-live-x86_64-${RELEASE}.iso";;
base-musl) ISO="void-live-x86_64-musl-${RELEASE}.iso";;
esac
HASH="$(wget -q -O- "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f4)"
echo "${URL}/${ISO} ${HASH}"
Expand Down Expand Up @@ -2212,6 +2252,60 @@ if [ -n "${2}" ]; then
fi
fi

# Handle void missing edition
case "${RELEASE}-${EDITION}" in
"20170220-gnome"|"20170220-gnome-musl")
echo "ERROR! Unsupported combination"
echo "Posible editions are: base base-musl cinnamon cinnamon-musl enlightenment enlightenment-musl lxde lxde-musl lxqt lxqt-musl mate mate-musl xfce xfce-musl"
exit 1;
;;
"20170825-gnome"|"20170825-gnome-musl"|"20170825-enlightenment"|"20170825-enlightenment-musl"|"20170825-lxqt"|"20170825-lxqt-musl"|"20170825-base"|"20170825-mate-musl"|"20170825-lxde"|"20170825-lxde-musl"|"20170825-cinnamon"|"20170825-cinnamon-musl"|"20170825-xfce"|"20170825-xfce-musl"|"20170825-base-musl")
echo "ERROR! Unsupported combination"
echo "Only one possible edition: mate"
exit 1;
;;
"20171007-gnome"|"20171007-gnome-musl")
echo "ERROR! Unsupported combination"
echo "Posible editions are: base base-musl cinnamon cinnamon-musl enlightenment enlightenment-musl lxde lxde-musl lxqt lxqt-musl mate mate-musl xfce xfce-musl"
exit 1;
;;
"20181111-gnome"|"20181111-gnome-musl")
echo "ERROR! Unsupported combination"
echo "Posible editions are: base base-musl cinnamon cinnamon-musl enlightenment enlightenment-musl lxde lxde-musl lxqt lxqt-musl mate mate-musl xfce xfce-musl"
exit 1;
;;
"20190217-gnome"|"20190217-gnome-musl")
echo "ERROR! Unsupported combination"
echo "Posible editions are: base base-musl cinnamon cinnamon-musl enlightenment enlightenment-musl lxde lxde-musl lxqt lxqt-musl mate mate-musl xfce xfce-musl"
exit 1;
;;
"20190526-gnome"|"20190526-gnome-musl"|"20190526-enlightenment"|"20190526-enlightenment-musl"|"20190526-lxqt"|"20190526-lxqt-musl"|"20190526-mate"|"20190526-mate-musl")
echo "ERROR! Unsupported combination"
echo "Posible editions are only: base base-musl cinnamon cinnamon-musl enlightenment enlightenment-musl lxde lxde-musl lxqt lxqt-musl"
exit 1;
;;
"20191109:gnome"|"20191109:gnome-musl")
echo "ERROR! Unsupported combination"
echo "Possible editions are: base base-musl cinnamon cinnamon-musl enlightenment enlightenment-musl lxde lxde-musl lxqt lxqt-musl mate mate-musl xfce xfce-musl"
exit 1
;;
"20210316:gnome"|"20210316:gnome-musl"|"20210316:enlightenment"|"20210316:enlightenment-musl"|"20210316:lxqt"|"20210316:lxqt-musl"|"20210316:mate"|"20210316:mate-musl")
echo "ERROR! Unsupported combination"
echo "Possible editions are only: base base-musl cinnamon cinnamon-musl lxde lxde-musl xfce xfce-musl"
exit 1
;;
"20210930:gnome"|"20210930:gnome-musl"|"20210930:enlightenment"|"20210930:enlightenment-musl"|"20210930:lxqt"|"20210930:lxqt-musl"|"20210930:mate"|"20210930:mate-musl"|"20210930:lxde"|"20210930:lxde-musl"|"20210930:cinnamon"|"20210930:cinnamon-musl")
echo "ERROR! Unsupported combination"
echo "Possible editions are only: base base-musl xfce xfce-musl"
exit 1
;;
"20221001:gnome"|"20221001:gnome-musl"|"20221001:enlightenment"|"20221001:enlightenment-musl"|"20221001:lxqt"|"20221001:lxqt-musl"|"20221001:mate"|"20221001:mate-musl"|"20221001:lxde"|"20221001:lxde-musl"|"20221001:cinnamon"|"20221001:cinnamon-musl")
echo "ERROR! Unsupported combination"
echo "Possible editions are only: base base-musl xfce xfce-musl"
exit 1
;;
esac

VM_PATH="${OS}-${RELEASE}-${EDITION}"
validate_release "releases_${OS}"
create_vm "$("get_${OS}" "${EDITION}")"
Expand Down

0 comments on commit a1978e7

Please sign in to comment.