26 lines
880 B
Plaintext
26 lines
880 B
Plaintext
# Template file for 'solus'
|
|
OSNAME="solus"
|
|
PRETTY="Solus"
|
|
BASEDOF="-"
|
|
HOMEPAGE="https://getsol.us"
|
|
DESCRIPTION="Designed for home computing. Every tweak enables us to deliver a cohesive computing experience"
|
|
CREDENTIALS="-"
|
|
|
|
function releases_() {
|
|
#shellcheck disable=SC2046,SC2005
|
|
echo $(web_pipe_json "https://downloads.getsol.us/isos/" | jq -r '.[].name[:-1]' | grep -E "^[0-9-]+$" | sort -u)
|
|
}
|
|
|
|
function editions_() {
|
|
#shellcheck disable=SC2046,SC2005
|
|
echo $(web_pipe_json "https://downloads.getsol.us/isos/$(releases_ | tail -n1)/" | jq -r '.[].name | 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}"
|
|
}
|