fix(quickget): update Zorin OS download method and editions
- Use direct mirror URL instead of unreliable shortlink redirects - Remove lite64 edition from Zorin 18 (now Pro-only) - Automatically detect latest revision for each version
This commit is contained in:
parent
cb67f82e6c
commit
e560c22d69
27
quickget
27
quickget
|
|
@ -1165,7 +1165,12 @@ function releases_zorin() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function editions_zorin() {
|
function editions_zorin() {
|
||||||
echo core64 lite64 education64
|
# Lite edition not available for Zorin 18 (Pro-only starting from 18)
|
||||||
|
if [ "${RELEASE}" = "18" ]; then
|
||||||
|
echo core64 education64
|
||||||
|
else
|
||||||
|
echo core64 lite64 education64
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function check_hash() {
|
function check_hash() {
|
||||||
|
|
@ -2712,10 +2717,22 @@ function get_vxlinux() {
|
||||||
function get_zorin() {
|
function get_zorin() {
|
||||||
local HASH=""
|
local HASH=""
|
||||||
local ISO=""
|
local ISO=""
|
||||||
local URL=""
|
local URL="https://plug-mirror.rcac.purdue.edu/zorin-iso/${RELEASE}"
|
||||||
# Process the URL redirections; required for Zorin
|
local EDITION_NAME=""
|
||||||
URL=$(web_redirect "https://zrn.co/${RELEASE}${EDITION}")
|
# Convert edition code to ISO naming
|
||||||
echo "${URL} ${HASH}"
|
case ${EDITION} in
|
||||||
|
core64) EDITION_NAME="Core-64-bit";;
|
||||||
|
lite64) EDITION_NAME="Lite-64-bit";;
|
||||||
|
education64) EDITION_NAME="Education-64-bit";;
|
||||||
|
esac
|
||||||
|
# Find the latest revision (r2, r1, or base)
|
||||||
|
ISO=$(web_pipe "${URL}/" | grep -o "Zorin-OS-[0-9.]*-${EDITION_NAME}[^\"]*\.iso" | grep -v Beta | sort -Vr | head -n 1)
|
||||||
|
if [ -z "${ISO}" ]; then
|
||||||
|
echo ""
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
HASH=$(web_pipe "${URL}/SHA256SUMS.txt" | grep "${ISO}" | cut -d' ' -f1)
|
||||||
|
echo "${URL}/${ISO} ${HASH}"
|
||||||
}
|
}
|
||||||
|
|
||||||
function unattended_windows() {
|
function unattended_windows() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue