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

68 lines
1.5 KiB
Text

# Template file for 'cachyos'
OSNAME="cachyos"
PRETTY="CachyOS"
LOGO=""
ICON="cachyos.svg"
ICON_ONLINE=""
CATEGORY="advanced"
BASEDOF="Arch"
DESCRIPTION="Designed to deliver lightning-fast speeds and stability, ensuring a smooth and enjoyable computing experience every time you use it"
HOMEPAGE="https://cachyos.org"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
MAGNET=""
MAGNET_PREFERRED=""
TORRENT=""
CHAT=""
RELEASES="latest"
EDITIONS="desktop handheld"
EDITIONS_LIST="desktop
handheld"
QEMU_ARCH="amd64"
releases_() {
# new cdn setup 10/2024
echo latest
}
editions_() {
# desktop version now installs different desktop environments
echo desktop handheld
}
get_() {
local HASH=""
local URL=""
URL="$(web_pipe "https://cachyos.org/download/" | grep -o "https://iso.cachyos.org/${EDITION}/[^&]*\.iso" | head -1)"
HASH=$(web_pipe "${URL}.sha256" | cut -d' ' -f1)
echo "${URL} ${HASH}"
}
config_() {
echo "disk_size=\"64G\"" >> "${CONF_FILE}"
}
releases_() {
# Releases parsed at generation time — no network access needed.
echo "${RELEASES}"
}
editions_() {
# Editions parsed at generation time — no network access needed.
local _scoped=""
if [ -n "${RELEASE:-}" ] && declare -F _release_editions_ >/dev/null; then
_scoped=$(_release_editions_ "${ARCH:-}|${RELEASE}")
fi
if [ -n "${_scoped}" ]; then
echo "${_scoped}"
return 0
fi
local _per_arch="EDITIONS_${ARCH:-}"
if [ -n "${!_per_arch:-}" ]; then
echo "${!_per_arch}"
return 0
fi
echo "${EDITIONS:-}"
}