Adding checksum to update scripts

This commit is contained in:
Christian Wolf 2022-04-10 14:07:18 +02:00
parent 61da9c72a6
commit 572185b9de
2 changed files with 4 additions and 0 deletions

View File

@ -17,4 +17,5 @@
</tags>
<maintainer>Christian Wolf</maintainer>
<targetplatform name="joomla" version="4[.].*"/>
$SUMS
</update>

View File

@ -21,8 +21,11 @@ fi
cp slt.tar.gz "$outname"
sha=$(sha512sum slt.tar.gz | cut -d' ' -f1)
export VERSION="$TOTRELEASE"
export FORMAT='tar.gz'
export DOWNLOAD_URL="\$DL_PREFIX/$filename"
export SUMS="<sha512>$sha</sha512>"
cat res/update.template | envsubst > "$xmlname"