This commit is contained in:
zenobit 2023-03-12 11:37:52 +01:00
parent 5047ec49de
commit 70624baf6a
75 changed files with 1414 additions and 178 deletions

View file

@ -37,6 +37,7 @@ function pretty_name() {
archlinux) PRETTY_NAME="Arch Linux";;
archcraft) PRETTY_NAME="Archcraft";;
arcolinux) PRETTY_NAME="Arco Linux";;
blendos) PRETTY_NAME="BlendOS";;
cachyos) PRETTY_NAME="CachyOS";;
centos-stream) PRETTY_NAME="CentOS Stream";;
cereus) PRETTY_NAME="Cereus Linux";;
@ -44,6 +45,7 @@ function pretty_name() {
dragonflybsd) PRETTY_NAME="DragonFlyBSD";;
elementary) PRETTY_NAME="elementary OS";;
endeavouros) PRETTY_NAME="EndeavourOS";;
endless) PRETTY_NAME="Endless OS";;
freebsd) PRETTY_NAME="FreeBSD";;
freedos) PRETTY_NAME="FreeDOS";;
fvoid) PRETTY_NAME="F-Void";;
@ -168,6 +170,7 @@ function os_support() {
archcraft \
arcolinux \
batocera \
blendos \
cachyos \
centos-stream \
cereus \
@ -178,6 +181,7 @@ function os_support() {
dragonflybsd \
elementary \
endeavouros \
endless \
fedora \
freebsd \
freedos \
@ -207,8 +211,8 @@ function os_support() {
reactos \
rebornos \
rockylinux \
slackware \
siduction \
slackware \
slitaz \
solus \
steamos \
@ -273,6 +277,10 @@ function releases_batocera() {
echo 32 33 34
}
function releases_blendos() {
curl -s https://api.github.com/repos/blend-os/blendOS/releases |grep tag_name | grep -o -E '[[:digit:]]+\.[[:digit:]]+'
}
function releases_cachyos() {
echo 230305
}
@ -342,6 +350,14 @@ function releases_endeavouros() {
cassini_22_12
}
function releases_endless() {
echo 5.0.0
}
function editions_endless() {
echo base en fr pt_BR es
}
function releases_fedora() {
echo 33 34 35 36 37
}
@ -373,7 +389,11 @@ function releases_freedos() {
}
function releases_fvoid() {
echo latest
echo latest 20230222 20230124 20221021 20220818
}
function editions_fvoid() {
echo lxqt
}
function releases_gabeeos() {
@ -467,7 +487,7 @@ function releases_netboot() {
}
function releases_netbsd() {
echo 9.0 9.1 9.2
echo 9.0 9.1 9.2 9.3
}
function releases_nixos(){
@ -507,6 +527,12 @@ function releases_rebornos() {
echo latest
}
function get_rebornos() {
local ISO=$(curl -s 'https://www.rebornos.org/download/' | grep -ohE 'https://pub-cb7a4d4f7a974896b3bf40c52d1defbc.r2.dev/RebornOS-ISO/(rebornos_xfce_minimal|rebornos_iso)-[0-9]{4}.[0-9]{2}.[0-9]{2}-x86_64.iso' | tail -n1)
local HASH=$(curl -s 'https://www.rebornos.org/download/' | grep -ozP 'Checksum MD5:.*[0-9a-fA-F]{32}' | grep -zoP '[0-9a-fA-F]{32}' | cut -d '' -f1)
echo "${ISO} ${HASH}"
}
function releases_rockylinux() {
echo 8.3 8.4 8.5 9.0 9.1
}
@ -517,10 +543,6 @@ function editions_rockylinux() {
"dvd (dvd1 prior to 9.0)"
}
function releases_slackware() {
echo 14.2 15.0
}
function releases_siduction() {
echo latest
}
@ -529,6 +551,10 @@ function editions_siduction() {
echo kde lxqt nox xfce xorg
}
function releases_slackware() {
echo 14.2 15.0
}
function releases_slitaz() {
echo preferred core core64 loram core-5in1 preinit
}
@ -645,7 +671,7 @@ function releases_voidpup() {
}
function releases_vxlinux() {
echo 6.1.2 6.1 5.0 4.2 4.1 4.0
echo 6.1.2 6.1 5.0 4.2 4.1 4.0.
}
function releases_xerolinux() {
@ -811,7 +837,7 @@ EOF
fi
# OS specific tweaks
case ${OS} in
alma|centos-stream|oraclelinux|popos|rockylinux)
alma|centos-stream|endless|oraclelinux|popos|rockylinux)
echo "disk_size=\"32G\"" >> "${CONF_FILE}";;
batocera)
echo "disk_size=\"8G\"" >> "${CONF_FILE}";;
@ -973,6 +999,14 @@ function get_batocera() {
local URL="https://mirrors.o2switch.fr/batocera/x86_64/stable/last"
local ISO="$(curl -sl ${URL}/ | grep -e 'batocera.*img.gz'|cut -d\" -f2)"
local CURRENT_RELEASE=$(echo "${ISO}"| cut -d\- -f3)
function get_blendos() {
local HASH=""
local URL="$(curl -s https://api.github.com/repos/blend-os/blendOS/releases |grep 'browser_download_url'|grep ${RELEASE} | grep -o '\"http.*\.iso\"'| cut -d\" -f 2| head -1)"
HASH=$(curl -s "${URL}.sha256sum" | cut -d' ' -f1)
echo "${URL} ${HASH}"
}
case ${RELEASE} in
${CURRENT_RELEASE}) #Current release
URL+=""
@ -1154,6 +1188,34 @@ function get_endeavouros() {
echo "${URL}/${ISO} ${HASH}"
}
function get_endless() {
local HASH="" # No hash - there is a signature in .asc signed by
#https://d1anzknqnc1kmb.cloudfront.net/eos-image-keyring.gpg
# (4096R: CB50 0F7B C923 3FAD 32B4 E720 9E0C 1250 587A 279C)
local FILE_TS=""
# https://support.endlessos.org/en/installation/direct-download gives the info but computes the URLS in js
# so parsing out the useful info is not happening tonight
# Endless edition names are "base" for the small minimal one or the Language for the large full release
# The isos are stamped as they are finished so ....
case ${EDITION} in
base)
FILE_TS="230127-211122";;
fr)
FILE_TS="230127-213415";;
en)
FILE_TS="230127-212436";;
es)
FILE_TS="230127-212646";;
pt_BR)
FILE_TS="230127-220328";;
esac
URL="https://images-dl.endlessm.com/release/${RELEASE}/eos-amd64-amd64/${EDITION}"
ISO="eos-eos${RELEASE:0:3}-amd64-amd64.${FILE_TS}.${EDITION}.iso"
echo "${URL}/${ISO}"
}
function get_fedora() {
local EDITION="${1:-}"
local HASH=""
@ -1443,14 +1505,6 @@ function get_rockylinux() {
echo "${URL}/${ISO} ${HASH}"
}
function get_slackware() {
local HASH=""
local ISO="slackware64-${RELEASE}-install-dvd.iso"
local URL="https://slackware.nl/slackware/slackware-iso/slackware64-${RELEASE}-iso"
HASH=$(wget -q -O- "${URL}/${ISO}.md5" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}
function get_siduction() {
local HASH=""
local DATE=""
@ -1462,6 +1516,14 @@ function get_siduction() {
echo "${URL}/${ISO} ${HASH}"
}
function get_slackware() {
local HASH=""
local ISO="slackware64-${RELEASE}-install-dvd.iso"
local URL="https://slackware.nl/slackware/slackware-iso/slackware64-${RELEASE}-iso"
HASH=$(wget -q -O- "${URL}/${ISO}.md5" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}
function get_slitaz() {
local HASH=""
local ISO="slitaz-rolling-${RELEASE}"