fix: dynamic grep latest MX linux and sort Kolibri (#1479)

* Fix: add dynamic grep for latest MX linux releases
* add quick fix for kolibri url
* add Kolibri editions and 7zip extraction
This commit is contained in:
Alex Genovese 2024-10-19 23:35:38 +02:00 committed by GitHub
parent 3de28e1e56
commit 9d4b82db20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 18 additions and 3 deletions

View File

@ -778,6 +778,10 @@ function releases_kolibrios() {
echo latest echo latest
} }
function editions_kolibrios() {
echo en_US ru_RU it_IT es_ES
}
function releases_linuxlite() { function releases_linuxlite() {
echo 6.6 6.4 6.2 6.0 echo 6.6 6.4 6.2 6.0
} }
@ -819,7 +823,8 @@ function releases_manjaro() {
} }
function releases_mxlinux() { function releases_mxlinux() {
echo 23.3 # needs header, so not web_pipe:
curl -Ils "https://sourceforge.net/projects/mx-linux/files/latest/download" | grep -i 'location:' | cut -d? -f1 | cut -d_ -f1 | cut -d- -f3
} }
function editions_mxlinux() { function editions_mxlinux() {
@ -1913,8 +1918,8 @@ function get_kdeneon() {
function get_kolibrios() { function get_kolibrios() {
local HASH="" local HASH=""
local ISO="kolibri.iso" local ISO="latest-iso.7z"
local URL="https://builds.kolibrios.org/eng" local URL="http://builds.kolibrios.org/${EDITION}"
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }
@ -3278,6 +3283,16 @@ function create_vm() {
rm -f "${VM_PATH}/${ISO}" rm -f "${VM_PATH}/${ISO}"
ISO="$(ls -1 "${VM_PATH}/"*.iso)" ISO="$(ls -1 "${VM_PATH}/"*.iso)"
fi;; fi;;
kolibrios)
if [[ ${ISO} = *".7z" ]]; then
if [ -z "$(command -v 7z)" ]; then echo "ERROR! '7zip' needs installing. Unable to extract file."
else
7z e "${VM_PATH}/${ISO}" -o"${VM_PATH}" >/dev/null 2>&1
rm -f "${VM_PATH}/${ISO}"
ISO="$(ls -1 "${VM_PATH}/"*.iso)"
ISO="$(basename "${ISO}")"
fi
fi;;
reactos) reactos)
if [[ ${ISO} = *".zip"* ]]; then if [[ ${ISO} = *".zip"* ]]; then
unzip -qo "${VM_PATH}/${ISO}" -d "${VM_PATH}" unzip -qo "${VM_PATH}/${ISO}" -d "${VM_PATH}"