Skip to content

Commit

Permalink
Add sha256 sum generation to make-zips scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
braun-steven committed Dec 11, 2017
1 parent 530b79b commit 1517fac
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions make-zips.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,17 @@ mkdir /tmp/zips
cp package/dist/*.zip /tmp/zips
./build.sh -c -v -b GPU
cp package/dist/*.zip /tmp/zips
old=$(pwd)
cd /tmp/zips

sumfile="/tmp/zips/sums.sha256"
echo "### SHA256 sums" >> ${sumfile}
echo "| sha256sum | file |" >> ${sumfile}
echo "| --- | --- |" >> ${sumfile}
for f in *.zip;
do
sum=$(sha256sum ${f} | cut -d" " -f1)
echo "| ${f} | ${sum} |" >> /tmp/zips/sums.sha256
done
cd ${old}

0 comments on commit 1517fac

Please sign in to comment.