mirror of
https://github.com/oSoWoSo/DistroHopper.git
synced 2026-12-06 04:43:46 +00:00
78 lines
2 KiB
Text
78 lines
2 KiB
Text
# Template file for 'solus'
|
|
OSNAME="solus"
|
|
PRETTY="Solus"
|
|
LOGO=" "
|
|
ICON="solus.svg"
|
|
ICON_ONLINE=""
|
|
CATEGORY="Beginner"
|
|
BASEDOF="-"
|
|
DESCRIPTION="Designed for home computing. Every tweak enables us to deliver a cohesive computing experience"
|
|
HOMEPAGE="https://getsol.us"
|
|
CREDENTIALS="-"
|
|
GPG=""
|
|
RSS=""
|
|
DW=""
|
|
MAGNET=""
|
|
MAGNET_PREFERRED=""
|
|
TORRENT=""
|
|
CHAT=""
|
|
|
|
RELEASES="2026-04-18 2025-11-29 2025-01-26 2024-10-14"
|
|
EDITIONS="Budgie GNOME Plasma Xfce XFCE-Beta"
|
|
EDITIONS_LIST="Budgie
|
|
GNOME
|
|
Plasma
|
|
Xfce
|
|
XFCE-Beta"
|
|
QEMU_ARCH="amd64"
|
|
|
|
_release_editions_() {
|
|
case "${1:-}" in
|
|
"amd64|2025-01-26") echo "Budgie GNOME Plasma XFCE-Beta" ;;
|
|
"amd64|2025-11-29") echo "Budgie GNOME Plasma Xfce" ;;
|
|
"amd64|2026-04-18") echo "Budgie GNOME Plasma Xfce" ;;
|
|
"amd64|2024-10-14") echo "Budgie GNOME Plasma XFCE-Beta" ;;
|
|
*) return 1 ;;
|
|
esac
|
|
}
|
|
|
|
releases_() {
|
|
#shellcheck disable=SC2046,SC2005
|
|
web_pipe_json "https://downloads.getsol.us/isos/" | jq -r '.[].name[:-1]' | grep -E "^[0-9-]+$" | sort -u
|
|
}
|
|
|
|
editions_() {
|
|
# Editions vary between releases (older images use XFCE-Beta, not Xfce).
|
|
local VERSION="${RELEASE:-$(releases_ | tail -n1)}"
|
|
web_pipe_json "https://downloads.getsol.us/isos/${VERSION}/" | jq -r '.[].name | select(endswith(".iso")) | sub("Solus-(?<e>.*)-Release-.*"; "\(.e)")' | sort -u
|
|
}
|
|
|
|
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}"
|
|
}
|
|
|
|
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:-}"
|
|
}
|