diff options
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-08 06:20:50 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-08 19:05:39 +0100
commitfcea7828ca526a17009ad2223df4e4a20645f18a (patch)
parentui: style (diff)
build: mirror the less reliable ones
2 files changed, 5 insertions, 3 deletions
diff --git a/README.md b/README.md
index 2795c484..27095489 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ Nothing to see here yet. Come back later.
### Building on Windows
-The build script will take care of downloading (without verification) and installing Go 1.12 and Mingw.
+The build script will take care of downloading (without verification) and installing Go 1.12, Mingw, and Patch.
C:\Projects> git clone https://git.zx2c4.com/wireguard-windows
diff --git a/build.bat b/build.bat
index 082310d2..c7016a38 100644
--- a/build.bat
+++ b/build.bat
@@ -10,9 +10,11 @@ if exist deps\.prepared goto :build
echo Downloading golang
curl -#fo go.zip https://dl.google.com/go/go1.12.windows-amd64.zip || goto :error
echo Downloading mingw
- curl -#fo mingw.zip https://musl.cc/x86_64-w64-mingw32-native.zip || goto :error
+ rem Mirror of https://musl.cc/x86_64-w64-mingw32-native.zip
+ curl -#fo mingw.zip https://download.wireguard.com/windows-toolchain/distfiles/x86_64-w64-mingw32-native-20190307.zip || goto :error
echo Downloading patch
- curl -L#fo patch.zip https://sourceforge.net/projects/gnuwin32/files/patch/2.5.9-7/patch-2.5.9-7-bin.zip || goto :error
+ rem Mirror of https://sourceforge.net/projects/gnuwin32/files/patch/2.5.9-7/patch-2.5.9-7-bin.zip
+ curl -#fo patch.zip https://download.wireguard.com/windows-toolchain/distfiles/patch-2.5.9-7-bin.zip || goto :error
echo Extracting golang
tar -xf go.zip || goto :error
echo Extracting mingw