add LudOS - inital attempt
This commit is contained in:
parent
1c9d413d38
commit
6d87ebac66
27
quickget
27
quickget
@ -45,6 +45,7 @@ function pretty_name() {
|
||||
kdeneon) PRETTY_NAME="KDE Neon";;
|
||||
kolibrios) PRETTY_NAME="KolibriOS";;
|
||||
linuxmint) PRETTY_NAME="Linux Mint";;
|
||||
ludos) PRETTY_NAME="LudOS";;
|
||||
mxlinux) PRETTY_NAME="MX Linux";;
|
||||
netboot) PRETTY_NAME="netboot.xyz";;
|
||||
netbsd) PRETTY_NAME="NetBSD";;
|
||||
@ -177,6 +178,7 @@ function os_support() {
|
||||
kolibrios \
|
||||
kubuntu \
|
||||
linuxmint \
|
||||
ludos \
|
||||
manjaro \
|
||||
mxlinux \
|
||||
netboot \
|
||||
@ -350,6 +352,10 @@ function editions_linuxmint(){
|
||||
echo cinnamon mate xfce
|
||||
}
|
||||
|
||||
function releases_ludos(){
|
||||
echo 1.0-beta{1,2,3,4,5}
|
||||
}
|
||||
|
||||
function releases_mxlinux(){
|
||||
echo 21
|
||||
}
|
||||
@ -670,6 +676,9 @@ function make_vm_config() {
|
||||
kolibrios)
|
||||
GUEST="kolibrios"
|
||||
IMAGE_TYPE="iso";;
|
||||
ludos)
|
||||
GUEST="ludos"
|
||||
IMAGE_TYPE="img";;
|
||||
macos)
|
||||
GUEST="macos"
|
||||
IMAGE_TYPE="img";;
|
||||
@ -995,6 +1004,18 @@ function get_linuxmint() {
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function get_ludos() {
|
||||
# not considering betas as editions at this point
|
||||
#local EDITION="${1:-}"
|
||||
local HASH=""
|
||||
#https://github.com/libretro/LudOS/releases/download/v1.0-beta5/LudOS-Generic.x86_64-1.0-beta5.img.gz
|
||||
local ISO="LudOS-Generic.x86_64-${RELEASE}.img.gz"
|
||||
local URL="https://github.com/libretro/LudOS/releases/download/v${RELEASE}"
|
||||
|
||||
#HASH=$(wget -q -O- "${URL}/sha256sum.txt" | grep "${ISO}" | cut -d' ' -f1)
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
function get_macos() {
|
||||
local BOARD_ID=""
|
||||
local CWD=""
|
||||
@ -1705,6 +1726,12 @@ create_vm() {
|
||||
unzip ${VM_PATH}/${ISO} -d ${VM_PATH}
|
||||
ISO=$(ls ${VM_PATH} | grep -i '.iso')
|
||||
fi
|
||||
# FIXME same as batocera - make common code
|
||||
# maybe with a single type test
|
||||
if [[ ${OS} == "ludos" ]] && [[ ${ISO} =~ ".gz" ]]; then
|
||||
gzip -d "${VM_PATH}/${ISO}"
|
||||
ISO="${ISO/.gz/}"
|
||||
fi
|
||||
|
||||
make_vm_config "${ISO}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user