From 62c4c440906d4feb1d9d6cceb76fb9a0411f96fd Mon Sep 17 00:00:00 2001 From: zenobit Date: Fri, 15 Dec 2023 03:24:00 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=A6=20Nitrux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quickget | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/quickget b/quickget index a24a180..ad3df98 100755 --- a/quickget +++ b/quickget @@ -98,6 +98,7 @@ function pretty_name() { mxlinux) PRETTY_NAME="MX Linux";; netboot) PRETTY_NAME="netboot.xyz";; netbsd) PRETTY_NAME="NetBSD";; + nitrux) PRETTY_NAME="Nitrux";; nixos) PRETTY_NAME="NixOS";; macos) PRETTY_NAME="macOS";; openbsd) PRETTY_NAME="OpenBSD";; @@ -268,6 +269,7 @@ function os_support() { mxlinux \ netboot \ netbsd \ + nitrux \ nixos \ lubuntu \ macos \ @@ -363,6 +365,7 @@ function os_homepages(){ mxlinux) HOMEPAGE="https://mxlinux.org/";; netboot) HOMEPAGE="https://netboot.xyz/";; netbsd) HOMEPAGE="https://www.netbsd.org/";; + nitrux) HOMEPAGE="https://nxos.org/";; nixos) HOMEPAGE="https://nixos.org/";; lubuntu) HOMEPAGE="https://lubuntu.me/";; macos) HOMEPAGE="https://www.apple.com/macos/";; @@ -763,6 +766,10 @@ function releases_netbsd() { echo ${NBSD_RELEASES} } +function releases_nitrux() { + echo latest +} + function releases_nixos(){ echo 21.05 21.11 22.05 22.11 23.05 23.11 } @@ -2136,6 +2143,19 @@ function get_netbsd() { echo "${URL}/${ISO} ${HASH}" } +function get_nitrux() { + local HASH="" + local URLBASE="" + local URL="" + local ISO="" + + URLBASE="https://sourceforge.net/projects/nitruxos/files/Release" + URL="${URLBASE}/ISO" + ISO=$(wget -qO- 'https://sourceforge.net/projects/nitruxos/rss?path=/Release/ISO' | grep '.iso' | head -1 | cut -d']' -f1 | cut -d '/' -f4) + HASH=$(wget -q -O- "${URLBASE}/MD5/${ISONAME}.md5sum" | grep "${ISO}" | cut -d' ' -f1) + echo "${URL}/${ISO} ${HASH}" +} + function get_nixos() { local EDITION="${1:-}" local HASH=""