DistroHopper/public/deepin
2026-11-29 05:46:38 +01:00

50 lines
1.3 KiB
Text

# Template file for 'deepin'
OSNAME="deepin"
PRETTY="Deepin"
LOGO=" "
ICON="deepin.svg"
ICON_ONLINE=""
CATEGORY="Beginner"
BASEDOF="Debian"
DESCRIPTION="Beautiful UI design, intimate human-computer interaction, and friendly community environment make you feel at home"
HOMEPAGE="https://www.deepin.org"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
MAGNET=""
MAGNET_PREFERRED=""
TORRENT=""
CHAT=""
RELEASES="25.3.0 25.2.0 25.1.0 25.0.10 25.0.1 23.1 20.9"
QEMU_ARCH="amd64"
releases_() {
#shellcheck disable=SC2046,SC2005
web_pipe "https://mirrors.kernel.org/deepin-cd/" | grep "href=" | cut -d'"' -f2 | grep -v "\.\." | grep -v nightly | grep -v preview | sed 's|/||g' | tail -n 10 | sort -r
}
get_() {
local HASH=""
local REV=${RELEASE}
# deepin-desktop-community-20.3-amd64.iso
local URL="https://cdimage.deepin.com/releases/"${RELEASE}
# Correct URL for 23-RC onwards which has architecture directories
if [ "${RELEASE}" != "20.9" ]; then
URL+="/amd64"
fi
local ISO="deepin-desktop-community-${REV}-amd64.iso"
HASH=$(web_pipe "${URL}/SHA256SUMS" | grep "${ISO}" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}
config_() {
echo "disk_size=\"64G\"" >> "${CONF_FILE}"
echo "ram=\"4G\"" >> "${CONF_FILE}"
}
releases_() {
# Releases parsed at generation time — no network access needed.
echo "${RELEASES}"
}