]>
Commit | Line | Data |
---|---|---|
ad5611d8 TR |
1 | #!/bin/sh |
2 | ||
3 | set -ex | |
22a2d3d5 UG |
4 | |
5 | echo "##############################################################################" | |
6 | echo "## Downloading mingw" | |
7 | echo "##############################################################################" | |
8 | ||
9 | BUILD_TEMP=${BUILD_TEMP:=$TEMP} | |
10 | BUILD_TEMP=$(cygpath $BUILD_TEMP) | |
11 | ||
12 | case "$ARCH" in | |
13 | amd64) | |
c25aa7cd | 14 | MINGW_URI="https://github.com/libgit2/ci-dependencies/releases/download/2021-05-04/mingw-x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.zip";; |
22a2d3d5 | 15 | x86) |
c25aa7cd | 16 | MINGW_URI="https://github.com/libgit2/ci-dependencies/releases/download/2021-05-04/mingw-i686-8.1.0-release-win32-sjlj-rt_v6-rev0.zip";; |
22a2d3d5 UG |
17 | esac |
18 | ||
19 | if [ -z "$MINGW_URI" ]; then | |
20 | echo "No URL" | |
21 | exit 1 | |
22 | fi | |
23 | ||
24 | mkdir -p "$BUILD_TEMP" | |
25 | ||
26 | curl -s -L "$MINGW_URI" -o "$BUILD_TEMP"/mingw-"$ARCH".zip | |
27 | unzip -q "$BUILD_TEMP"/mingw-"$ARCH".zip -d "$BUILD_TEMP" |