From 91389d6be47d1873be2daeb0cdcf5536a7acf47b Mon Sep 17 00:00:00 2001 From: Alex Genovese Date: Fri, 12 Apr 2024 16:17:06 +0200 Subject: [PATCH] add PureOS --- quickget | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/quickget b/quickget index faa3dd8..d882dd1 100755 --- a/quickget +++ b/quickget @@ -109,6 +109,7 @@ function pretty_name() { peppermint) PRETTY_NAME="PeppermintOS";; popos) PRETTY_NAME="Pop!_OS";; primtux) PRETTY_NAME="Primtux";; + pureos) PRETTY_NAME="PureOS";; reactos) PRETTY_NAME="ReactOS";; rebornos) PRETTY_NAME="RebornOS";; rockylinux) PRETTY_NAME="Rocky Linux";; @@ -287,6 +288,7 @@ function os_support() { popos \ porteus \ primtux \ + pureos \ reactos \ rebornos \ rockylinux \ @@ -389,6 +391,7 @@ function os_homepages(){ popos) HOMEPAGE="https://pop.system76.com/";; porteus) HOMEPAGE="http://www.porteus.org/";; primtux) HOMEPAGE="https://primtux.fr/";; + pureos) HOMEPAGE="https://www.pureos.net/";; reactos) HOMEPAGE="https://reactos.org/";; rebornos) HOMEPAGE="https://rebornos.org/";; rockylinux) HOMEPAGE="https://rockylinux.org/";; @@ -855,6 +858,13 @@ function editions_primtux() { echo 2022-10 } +function releases_pureos() { + wget -q -O- "https://www.pureos.net/download/" | grep -m 1 "downloads.puri" | cut -d '"' -f 2 | cut -d '-' -f 4 +} +function editions_pureos() { + echo gnome plasma +} + function releases_reactos() { echo latest } @@ -2375,18 +2385,35 @@ function get_primtux() { local HASH="" local URL="" local ISO="" - ISO="PrimTux${RELEASE}-amd64-${EDITION}.iso" URL="https://sourceforge.net/projects/primtux/files/Distribution" HASH=$(wget -q -O- "${URL}/${ISO}.md5" | grep "${ISO}" | cut -d' ' -f1) echo "${URL}/${ISO} ${HASH}" } +function get_pureos() { + local EDITION="${1:-}" + local HASH="" + local ISO="" + local URL="" + local PureName= + PureName="$(wget -q -O- "https://www.pureos.net/download/" | grep -m 1 "downloads.puri" | cut -d '/' -f 4)" + local PureDate= + PureDate="$(wget -q -O- "https://www.pureos.net/download/" | grep -m 1 "downloads.puri" | cut -d '/' -f 6)" + local PureDateSquashed="${PureDate//'-'/}" + edition="${EDITION,,}" + URL="https://downloads.puri.sm/${PureName}/${edition}/${PureDate}" + ISO="pureos-${RELEASE}-${edition}-live-${PureDateSquashed}_amd64.iso" + local IsoTrimmed= + IsoTrimmed="${ISO%.*}" + HASH="$(wget -q -O- "${URL}/${IsoTrimmed}.checksums_sha256.txt" | grep -m 1 '.iso' | cut -d '.' -f 1)" + echo "${URL}/${ISO} ${HASH}" +} + + function get_reactos() { local HASH="" local URL="" - local TMPURL="" - URL=$(curl -Lfs "https://sourceforge.net/projects/reactos/files/latest/download" -w %{url_effective} -o /this/is/a/nonexistent/directory/$RANDOM/$RANDOM) echo "${URL} ${HASH}" }