MSI: Generate sha256sum during MSI build process in circleci (#17120)

* build: generate sha256 during msi build
This commit is contained in:
Brian Gann
2019-05-21 09:58:07 +02:00
committed by Leonard Gram
parent 5414a31101
commit f98095d629
2 changed files with 7 additions and 0 deletions
@@ -24,5 +24,11 @@ python3 generator/build.py "$@"
chmod a+x /tmp/scratch/*.msi
echo "MSI: Copy to $WORKING_DIRECTORY/dist"
cp /tmp/scratch/*.msi $WORKING_DIRECTORY/dist
echo "MSI: Generate SHA256"
MSI_FILE=`ls $WORKING_DIRECTORY/dist/*.msi`
SHA256SUM=`sha256sum $MSI_FILE | cut -f1 -d' '`
echo $SHA256SUM > $MSI_FILE.sha256
echo "MSI: SHA256 file content:"
cat $MSI_FILE.sha256
echo "MSI: contents of $WORKING_DIRECTORY/dist"
ls -al $WORKING_DIRECTORY/dist