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:
Martin Wimpress 2026-01-23 22:52:44 +00:00 committed by Martin Wimpress
parent cb67f82e6c
commit e560c22d69
1 changed files with 22 additions and 5 deletions

View File

@ -1165,7 +1165,12 @@ function releases_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() {
@ -2712,10 +2717,22 @@ function get_vxlinux() {
function get_zorin() {
local HASH=""
local ISO=""
local URL=""
# Process the URL redirections; required for Zorin
URL=$(web_redirect "https://zrn.co/${RELEASE}${EDITION}")
echo "${URL} ${HASH}"
local URL="https://plug-mirror.rcac.purdue.edu/zorin-iso/${RELEASE}"
local EDITION_NAME=""
# Convert edition code to ISO naming
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() {