Browse Source
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.
pull/4896/head
Daniel Gibbs
2 months ago
Failed to extract signature
1 changed files with
1 additions and
0 deletions
-
lgsm/modules/update_xnt.sh
|
|
@ -55,6 +55,7 @@ fn_update_remotebuild() { |
|
|
remotebuildfilename="${remotebuildfilename}.zip" |
|
|
remotebuildfilename="${remotebuildfilename}.zip" |
|
|
remotebuildurl="https://dl.xonotic.org/${remotebuildfilename}" |
|
|
remotebuildurl="https://dl.xonotic.org/${remotebuildfilename}" |
|
|
remotebuild="${remotebuildtag}" |
|
|
remotebuild="${remotebuildtag}" |
|
|
|
|
|
remotebuildhash=$(curl -s "https://dl.xonotic.org/${remotebuildtag}.sha512" | grep "${remotebuildfilename}$" | grep -oE '[a-f0-9]{128}') |
|
|
|
|
|
|
|
|
if [ "${firstcommandname}" != "INSTALL" ]; then |
|
|
if [ "${firstcommandname}" != "INSTALL" ]; then |
|
|
fn_print_dots "Checking remote build: ${remotelocation}" |
|
|
fn_print_dots "Checking remote build: ${remotelocation}" |
|
|
|