Skip to content

Commit 6ecb60e

Browse files
committed
feat(xnt): add SHA512 hash extraction for remote builds
Updates the Xonotic update module to fetch the SHA512 hash from the remote download server, allowing for build verification and identification.
1 parent a2ccce4 commit 6ecb60e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lgsm/modules/update_xnt.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ fn_update_remotebuild() {
5555
remotebuildfilename="${remotebuildfilename}.zip"
5656
remotebuildurl="https://dl.xonotic.org/${remotebuildfilename}"
5757
remotebuild="${remotebuildtag}"
58+
remotebuildhash=$(curl -s "https://dl.xonotic.org/${remotebuildtag}.sha512" | grep "${remotebuildfilename}$" | grep -oE '[a-f0-9]{128}')
5859

5960
if [ "${firstcommandname}" != "INSTALL" ]; then
6061
fn_print_dots "Checking remote build: ${remotelocation}"

0 commit comments

Comments
 (0)