DistroHopper/templates/debian
2026-05-27 17:00:06 +02:00

73 lines
2 KiB
Text

# Template file for 'debian'
OSNAME="debian"
PRETTY="Debian"
LOGO=" "
ICON="debian.svg"
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/debian.png"
CATEGORY="Beginner"
BASEDOF="-"
HOMEPAGE="https://www.debian.org"
DESCRIPTION="Complete Free Operating System with perfect level of ease of use and stability"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
function releases_() {
local ARCHIVE=""
local MAJ=""
local NEW=""
local OLD=""
NEW=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1)
echo -n "${NEW}"
MAJ=$(echo "${NEW}" | cut -d'.' -f 1)
ARCHIVE="$(web_pipe "https://cdimage.debian.org/cdimage/archive/" | grep folder | grep -v NEVER | cut -d'"' -f 6)"
for i in {1..2}; do
CUR=$((MAJ - i))
OLD=$(grep ^"${CUR}" <<< "${ARCHIVE}" | tail -n 1 | tr -d '/')
echo -n " ${OLD}"
done
echo
}
function editions_() {
echo cinnamon gnome kde lxde lxqt mate netinst standard xfce
}
function arch_() {
# arm64 is only published for netinst; live ISOs are amd64-only.
# Returning the superset here; non-matching combos fail web_check in test mode.
echo "amd64 arm64"
}
function get_() {
local DEBCURRENT=""
local HASH=""
local ISO="debian-live-${RELEASE}-${ARCH:-amd64}-${EDITION}.iso"
local URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/${ARCH:-amd64}/iso-hybrid"
DEBCURRENT=$(web_pipe "https://cdimage.debian.org/debian-cd/" | grep '\.[0-9]/' | cut -d'>' -f 9 | cut -d'/' -f 1)
case "${ARCH}" in
arm64)
URL="https://cdimage.debian.org/cdimage/archive/${RELEASE}-live/arm64/iso-dvd"
;;
*)
case "${RELEASE}" in
"${DEBCURRENT}") URL="https://cdimage.debian.org/debian-cd/${RELEASE}-live/amd64/iso-hybrid";;
esac
;;
esac
if [ "${EDITION}" == "netinst" ]; then
URL="${URL/-live/}"
URL="${URL/hybrid/cd}"
URL="${URL/iso-dvd/iso-cd}"
ISO="${ISO/-live/}"
fi
HASH=$(web_pipe "${URL}/SHA512SUMS" | grep "${ISO}" | cut -d' ' -f1 | head -n 1)
echo "${URL}/${ISO} ${HASH}"
}
function config_() {
echo "disk_size=\"32G\"" >> "${CONF_FILE}"
}