Checksum checking in release script

This commit is contained in:
Imbus 2023-12-08 07:48:11 +01:00
parent d3c8396bae
commit 46b0908e45

View file

@ -17,9 +17,10 @@ release: mkdir build && check-releases
strip build/main strip build/main
cd release && tar -czvf build.tar.gz ../build &> /dev/null cd release && tar -czvf build.tar.gz ../build &> /dev/null
cd release && 7za a -tzip build.zip ../build -mx=9 &> /dev/null cd release && 7za a -tzip build.zip ../build -mx=9 &> /dev/null
sha256sum release/* > release/sha256sums.txt
check-releases: check-releases:
sha256sum release/* > release/sha256sums.txt sha256sum -c release/sha256sums.txt # Checking if sha256sums are valid
tar -tf release/build.tar.gz &>/dev/null # Checking if tar is valid tar -tf release/build.tar.gz &>/dev/null # Checking if tar is valid
7za t release/build.zip &>/dev/null # Checking if zip is valid 7za t release/build.zip &>/dev/null # Checking if zip is valid