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 PureOS #185

Open
wants to merge 1 commit into
base: os-pureos
Choose a base branch
from
Open
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
33 changes: 30 additions & 3 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -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";;
Expand Down Expand Up @@ -287,6 +288,7 @@ function os_support() {
popos \
porteus \
primtux \
pureos \
reactos \
rebornos \
rockylinux \
Expand Down Expand Up @@ -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/";;
Expand Down Expand Up @@ -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
}
Expand Down Expand Up @@ -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_reactos() {
function get_pureos() {
local EDITION="${1:-}"
local HASH=""
local ISO=""
local URL=""
local TMPURL=""
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=""
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}"
}
Expand Down