win_installer: fetch and verify using bash

This commit is contained in:
Eric Le Lay 2018-07-28 22:29:18 +02:00
parent 2e329e29cd
commit ba3f4084b3
2 changed files with 13 additions and 3 deletions

View File

@ -14,9 +14,7 @@ build_script:
- set
- set PATH=C:\msys64\%MSYSTEM%\bin;C:\msys64\usr\bin;%PATH%
- set CHERE_INVOKING=yes
- wget https://www.paralint.com/projects/notifu/dl/notifu-src-1.6.1.zip
- bash -lc 'exec test $(sha256sum notifu-src-1.6.1.zip | cut -d " " -f0) eq 0fdcd08d3e12d87af76cdaafbf1278c4fcf1baf5d6447cce1a676b8d78a4d8c3'
- unzip notifu-src-1.6.1.zip
- bash -lc "bash .appveyor/get_notifu.sh"
- MSBuild.exe .\notifu.sln /p:Configuration=Debug /p:Platform=WIN32
- bash -lc "cp Debug/notifu.exe tools/win_installer/misc"
- bash -lc "pacman --noconfirm --ask 20 -Suy"

12
.appveyor/get_notifu.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
src=notifu-src-1.6.1.zip
wget https://www.paralint.com/projects/notifu/dl/$src
checksum=$(sha256sum $src | cut -d " " -f0)
if [ "$checksum" -ne "0fdcd08d3e12d87af76cdaafbf1278c4fcf1baf5d6447cce1a676b8d78a4d8c3" ]; then
echo "$src checksum OK"
else
echo "$src checksum KO: got $checksum"
exit 1
fi