DistroHopper/public/batocera
2026-05-27 17:00:06 +02:00

44 lines
1 KiB
Text

# Template file for 'batocera'
OSNAME="batocera"
PRETTY="Batocera"
LOGO=""
ICON="batocera.svg"
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/batocera.png"
CATEGORY="Gaming"
BASEDOF="-"
DESCRIPTION="Retro-gaming distribution with the aim of turning any computer/nano computer into a gaming console during a game or permanently"
HOMEPAGE="https://batocera.org"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
MAGNET=""
CHAT=""
GUEST="batocera"
IMAGE_TYPE="img"
RELEASES="42 41 40 39 38"
QEMU_ARCH="amd64"
releases_() {
echo $(web_pipe "https://mirrors.o2switch.fr/batocera/x86_64/stable/" | grep ^\<a | cut -d'"' -f2 | cut -d '/' -f1 | grep -v '\.' | sort -ru | tail -n +2 | head -n 5)
}
get_() {
local HASH=""
local ISO=""
local URL="https://mirrors.o2switch.fr/batocera/x86_64/stable/${RELEASE}"
ISO="$(web_pipe "${URL}/" | grep -e 'batocera.*img.gz'| cut -d'"' -f2)"
echo "${URL}/${ISO} ${HASH}"
}
extract_() {
if [[ ${ISO} = *".gz"* ]]; then
gzip -d "${VM_PATH}/${ISO}"
ISO="${ISO/.gz/}"
fi
}
config_() {
echo "disk_size=\"8G\"" >> "${CONF_FILE}"
}