From 44105b3bb4a93a7a60d394df9bd7975b7eddd8fb Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 8 Mar 2019 06:20:50 +0100 Subject: build: mirror the less reliable ones Signed-off-by: Jason A. Donenfeld --- README.md | 2 +- build.bat | 6 ++++-- 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 -- cgit v1.2.3-59-g8ed1b