quickemu/actions/gnomeos

30 lines
1003 B
Plaintext

# Template file for 'gnomeos'
OSNAME="gnomeos"
PRETTY="GNOME OS"
BASEDOF="-"
HOMEPAGE="https://os.gnome.org"
DESCRIPTION="Alpha nightly bleeding edge distro of GNOME"
CREDENTIALS="-"
function releases_() {
#shellcheck disable=SC2046,SC2005
echo "nightly" $(web_pipe "https://download.gnome.org/gnomeos/" | grep "title=" | awk -F'"' '{print $4}' | tr -d '/' | sort -nr)
}
function get_() {
local HASH=""
local ISO="gnome_os_installer_${RELEASE}.iso"
local URL="https://download.gnome.org/gnomeos/${RELEASE}"
case ${RELEASE} in
nightly)
ISO="gnome_os_installer.iso"
URL="https://os.gnome.org/download/latest";;
46.0) ISO="gnome_os_installer_46.iso";;
3*) ISO="gnome_os_installer.iso";;
48.alpha) ISO=$(web_pipe "https://download.gnome.org/gnomeos/48.alpha/" | grep '.iso' | cut -d'"' -f4);;
esac
# Process the URL redirections; required for GNOME
ISO=$(web_redirect "${URL}/${ISO}")
echo "${ISO} ${HASH}"
}