Upgraded hash to SHA256

This commit is contained in:
jtc42 2019-05-19 17:02:12 +01:00
parent dbc9e39473
commit 53bd4e21ca

View file

@ -7,8 +7,8 @@ packagePath="$(dirname "$scriptPath")"
packageJson="$packagePath/package.json" packageJson="$packagePath/package.json"
installerPath="$packagePath/openflexure-ev-win.exe" installerPath="$packagePath/openflexure-ev-win.exe"
installerMd5=`md5sum ${installerPath} | awk '{ print $1 }'` installerHash=`sha256sum ${installerPath} | awk '{ print $1 }'`
echo "$installerMd5" echo "$installerHash"
outpath="$packagePath/release-builds/choco" outpath="$packagePath/release-builds/choco"
toolspath="$outpath/tools" toolspath="$outpath/tools"
@ -92,8 +92,8 @@ cat > "$toolspath/chocolateyInstall.ps1" <<- EOL
softwareName = "OpenFlexure eV" softwareName = "OpenFlexure eV"
checksum = "${installerMd5}" checksum = "${installerHash}"
checksumType = "md5" checksumType = "sha256"
silentArgs = "/S" silentArgs = "/S"
} }