Skip to content

Commit c66827c

Browse files
committed
fix(quickget): extract Archcraft version folder from redirect URL
The hash URL was incorrectly using 'v${RELEASE}' (e.g., 'vlatest') instead of extracting the actual version folder from the redirect URL. Since releases_archcraft returns 'latest', the download redirect goes to a versioned folder like 'v25.10', but the hash file lookup used 'vlatest' which doesn't exist. Extract the version folder from the redirect URL to construct the correct hash file path.
1 parent 7a59041 commit c66827c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

quickget

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1602,10 +1602,12 @@ function get_archcraft() {
16021602
local HASH=""
16031603
local ISO=""
16041604
local URL=""
1605+
local VERSION_FOLDER=""
16051606
URL="https://sourceforge.net/projects/archcraft/files/${RELEASE}/download"
16061607
URL="$(web_redirect "${URL}" | cut -d? -f1)"
16071608
ISO="$(basename "${URL}")"
1608-
HASH=$(web_pipe "https://sourceforge.net/projects/archcraft/files/v${RELEASE}/${ISO}.sha256sum" | cut -d' ' -f1)
1609+
VERSION_FOLDER="$(dirname "${URL}" | xargs basename)"
1610+
HASH=$(web_pipe "https://sourceforge.net/projects/archcraft/files/${VERSION_FOLDER}/${ISO}.sha256sum" | cut -d' ' -f1)
16091611
echo "${URL} ${HASH}"
16101612
}
16111613

0 commit comments

Comments
 (0)