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

32 lines
1,006 B
Text

# Template file for 'solus'
OSNAME="solus"
PRETTY="Solus"
LOGO=" "
ICON="solus.svg"
ICON_ONLINE="https://distrowatch.com/images/yvzhuwbpy/solus.png"
CATEGORY="Beginner"
BASEDOF="-"
HOMEPAGE="https://getsol.us"
DESCRIPTION="Designed for home computing. Every tweak enables us to deliver a cohesive computing experience"
CREDENTIALS="-"
GPG=""
RSS=""
DW=""
function releases_() {
#shellcheck disable=SC2046,SC2005
web_pipe_json "https://downloads.getsol.us/isos/" | jq -r '.[].name[:-1]' | grep -E "^[0-9-]+$" | sort -u
}
function editions_() {
#shellcheck disable=SC2046,SC2005
web_pipe_json "https://downloads.getsol.us/isos/$(IFS=' '; releases_ | tail -n1)/" | jq -r '.[].name | select(endswith("iso")) | sub("Solus-(?<e>.*)-Release-.*"; "\(.e)")' | sort -u
}
function get_() {
local HASH=""
local ISO="Solus-${EDITION}-Release-${RELEASE}.iso"
local URL="https://downloads.getsol.us/isos/${RELEASE}"
HASH=$(web_pipe "${URL}/${ISO}.sha256sum" | cut -d' ' -f1)
echo "${URL}/${ISO} ${HASH}"
}