aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-03-05 00:56:48 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-03-05 05:36:21 +0100
commit0d4eba28ad5a092686bdb9a700745912419a4d51 (patch)
treea084be18d29870c0e918012985a089bed3c68825
parentui: show last tunnel config (diff)
downloadwireguard-windows-0d4eba28ad5a092686bdb9a700745912419a4d51.tar.xz
wireguard-windows-0d4eba28ad5a092686bdb9a700745912419a4d51.zip
build: musl.cc now offers zips
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--build.bat12
1 files changed, 5 insertions, 7 deletions
diff --git a/build.bat b/build.bat
index c7c0b591..2d2224dd 100644
--- a/build.bat
+++ b/build.bat
@@ -20,17 +20,15 @@ goto :out
mkdir deps || goto :error
cd deps || goto :error
echo Downloading golang
- curl -#o go.zip https://dl.google.com/go/go1.12.windows-amd64.zip || goto :error
+ curl -#fo go.zip https://dl.google.com/go/go1.12.windows-amd64.zip || goto :error
echo Downloading mingw
- curl -#o mingw.tar.gz http://musl.cc/x86_64-w64-mingw32-native.tgz || goto :error
+ curl -#fo mingw.zip https://musl.cc/x86_64-w64-mingw32-native.zip || goto :error
echo Extracting golang
tar -xf go.zip || goto :error
- echo Extracting gcc
- rem We don't goto error here because the symlinks make it always fail
- tar -xf mingw.tar.gz
- move x86_64-w64-mingw32-native/include x86_64-w64-mingw32-native/x86_64-w64-mingw32/ > NUL || goto :error
+ echo Extracting mingw
+ tar -xf mingw.zip || goto :error
echo Cleaning up
- del go.zip mingw.tar.gz || goto :error
+ del go.zip mingw.zip || goto :error
copy /y NUL .prepared > NUL || goto :error
cd .. || goto :error
exit /b