summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2018-01-08 13:23:29 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2018-01-08 22:58:20 +0200
commit8597d50b5bc080651627fc3ba95a47aef9cde8e1 (patch)
treea6accf649279e0a9b87520bac037fe77c3bc1d63 /scripts
parentd00e56ada0da13d9f9c99b614f915a8ac81236ca (diff)
downloadqtlocation-mapboxgl-8597d50b5bc080651627fc3ba95a47aef9cde8e1.tar.gz
[windows] Build on AppVeyor CI
Diffstat (limited to 'scripts')
-rw-r--r--scripts/check-sha256.ps18
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!'
+}