diff --git a/.appveyor.yml b/.appveyor.yml index 78ace5cf..96a18041 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -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" diff --git a/.appveyor/get_notifu.sh b/.appveyor/get_notifu.sh new file mode 100644 index 00000000..42642c43 --- /dev/null +++ b/.appveyor/get_notifu.sh @@ -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 \ No newline at end of file