Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Nitrux #873

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,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";;
Expand Down Expand Up @@ -245,6 +246,7 @@ function os_support() {
mxlinux \
netboot \
netbsd \
nitrux \
nixos \
lubuntu \
macos \
Expand Down Expand Up @@ -331,6 +333,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/";;
Expand Down Expand Up @@ -663,6 +666,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
}
Expand Down Expand Up @@ -1795,6 +1802,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=""
Expand Down