diff options
author | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-01-08 13:23:29 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2018-01-08 22:58:20 +0200 |
commit | 8597d50b5bc080651627fc3ba95a47aef9cde8e1 (patch) | |
tree | a6accf649279e0a9b87520bac037fe77c3bc1d63 /scripts | |
parent | d00e56ada0da13d9f9c99b614f915a8ac81236ca (diff) | |
download | qtlocation-mapboxgl-8597d50b5bc080651627fc3ba95a47aef9cde8e1.tar.gz |
[windows] Build on AppVeyor CI
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/check-sha256.ps1 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scripts/check-sha256.ps1 b/scripts/check-sha256.ps1 new file mode 100644 index 0000000000..57c9797c6a --- /dev/null +++ b/scripts/check-sha256.ps1 @@ -0,0 +1,8 @@ +param([string]$file, [string]$hash); + +$hashFromFile = Get-FileHash -Path $file -Algorithm SHA256 +$hashFromFile | Format-List + +if ($hashFromFile.Hash -ne $hash) { + Throw 'Hash mismatch!' +} |