feat: Add Clear Linux

This commit is contained in:
Lazymanzoid 2025-06-16 01:00:14 -04:00
parent 6145f685aa
commit 99d056828d
1 changed files with 21 additions and 0 deletions

View File

@ -35,6 +35,7 @@ function os_info() {
cachyos) INFO="CachyOS|-|https://cachyos.org/|Designed to deliver lightning-fast speeds and stability, ensuring a smooth and enjoyable computing experience every time you use it.";;
centos-stream) INFO="CentOS Stream|-|https://www.centos.org/centos-stream/|Continuously delivered distro that tracks just ahead of Red Hat Enterprise Linux (RHEL) development, positioned as a midstream between Fedora Linux and RHEL.";;
chimeralinux) INFO="Chimera Linux|anon:chimera root:chimera|https://chimera-linux.org/|Modern, general-purpose non-GNU Linux distribution.";;
clearlinux) INFO="Clear Linux|-|https://www.clearlinux.org/|Clear Linux OS is an open source, rolling release Linux distribution optimized for performance and security, from the Cloud to the Edge, designed for customization, and manageability.";;
crunchbang++) INFO="Crunchbangplusplus|-|https://www.crunchbangplusplus.org/|The classic minimal crunchbang feel, now with debian 12 bookworm.";;
debian) INFO="Debian|-|https://www.debian.org/|Complete Free Operating System with perfect level of ease of use and stability.";;
deepin) INFO="Deepin|-|https://www.deepin.org/|Beautiful UI design, intimate human-computer interaction, and friendly community environment make you feel at home.";;
@ -429,6 +430,7 @@ function os_support() {
cachyos \
centos-stream \
chimeralinux \
clearlinux \
crunchbang++ \
debian \
deepin \
@ -647,6 +649,10 @@ function editions_chimeralinux() {
echo base gnome
}
function releases_clearlinux() {
echo latest
}
function releases_crunchbang++() {
#shellcheck disable=SC2046,SC2005
echo $(web_pipe "https://api.github.com/repos/CBPP/cbpp/releases" | grep 'download_url' | cut -d'-' -f2 | grep '^[0-9]' | sort -gru)
@ -1446,6 +1452,8 @@ EOF
echo "disk_size=\"8G\"" >> "${CONF_FILE}";;
bazzite)
echo "disk_size=\"64G\"" >> "${CONF_FILE}";;
clearlinux)
echo "disk_size=\"64G\"" >> "${CONF_FILE}";;
dragonflybsd|haiku|openbsd|netbsd|slackware|slax|tails|tinycore)
echo "boot=\"legacy\"" >> "${CONF_FILE}";;
deepin)
@ -1730,6 +1738,19 @@ function get_chimeralinux() {
echo "${URL}/${ISO} ${HASH}"
}
function get_clearlinux() {
local HASH=""
local ISO=""
local URL=""
local RELEASE=""
RELEASE=$(curl -s https://cdn.download.clearlinux.org/releases/ | grep -oE "[0-9]+" | sort -nr | head -1)
ISO="clear-${RELEASE}-live-desktop.iso"
URL="https://cdn.download.clearlinux.org/releases/${RELEASE}/clear"
HASH=$(web_pipe "${URL}/${ISO}-SHA512SUMS" | grep "${ISO}" | cut -d' ' -f 1)
echo "${URL}/${ISO} ${HASH}"
}
function get_crunchbang++() {
local HASH=""
local ISO=""