@@ -4,7 +4,7 @@ rem Copyright (C) 2019-2026 WireGuard LLC. All Rights Reserved.
44
55setlocal enabledelayedexpansion
66set BUILDDIR = %~dp0
7- set PATH = %BUILDDIR% .deps\llvm-mingw\bin; %BUILDDIR% .deps\go\ bin;%BUILDDIR% .deps;%PATH%
7+ set PATH = %BUILDDIR% .deps\bin;%BUILDDIR% .deps;%PATH%
88set PATHEXT = .exe
99cd /d %BUILDDIR% || exit /b 1
1010
@@ -13,14 +13,14 @@ if exist .deps\prepared goto :render
1313 rmdir /s /q .deps 2 > NUL
1414 mkdir .deps || goto :error
1515 cd .deps || goto :error
16- call :download go.zip https://go.dev/dl/ go1.26.1.windows-amd64 .zip 9b68112c913f45b7aebbf13c036721264bbba7e03a642f8f7490c561eebd1ecc || goto :error
17- rem Mirror of https://github.com/mstorsjo/llvm-mingw/releases/download/20201020 /llvm-mingw-20201020-msvcrt -x86_64.zip
18- call :download llvm-mingw-msvcrt .zip https://download.wireguard.com/windows-toolchain/distfiles/llvm-mingw-20201020-msvcrt -x86_64.zip 2e46593245090df96d15e360e092f0b62b97e93866e0162dca7f93b16722b844 || goto :error
16+ call :download go.zip https://download.wireguard.com/windows-toolchain/distfiles/ go1.26.1-windows_amd64_2026-03-21 .zip 5dee0cfdad62aaa838937ce816daa6614c2648435ea867c98aec9ef3d1dd0c84 " --strip-components 1 " || goto :error
17+ rem Mirror of https://github.com/mstorsjo/llvm-mingw/releases/download/20260311 /llvm-mingw-20260311-ucrt -x86_64.zip
18+ call :download llvm-mingw-ucrt .zip https://download.wireguard.com/windows-toolchain/distfiles/llvm-mingw-20260311-ucrt -x86_64.zip dd4c67d98959479c7be2fb6709ba074475991590848cb9d0eb2620be06b182e1 " --strip-components 1 " || goto :error
1919 rem Mirror of https://imagemagick.org/download/binaries/ImageMagick-7.0.8-42-portable-Q16-x64.zip
2020 call :download imagemagick.zip https://download.wireguard.com/windows-toolchain/distfiles/ImageMagick-7.0.8-42-portable-Q16-x64.zip 584e069f56456ce7dde40220948ff9568ac810688c892c5dfb7f6db902aa05aa " convert.exe colors.xml delegates.xml" || goto :error
2121 rem Mirror of https://sourceforge.net/projects/ezwinports/files/make-4.2.1-without-guile-w32-bin.zip
2222 call :download make.zip https://download.wireguard.com/windows-toolchain/distfiles/make-4.2.1-without-guile-w32-bin.zip 30641be9602712be76212b99df7209f4f8f518ba764cf564262bc9d6e4047cc7 " --strip-components 1 bin" || goto :error
23- call :download wireguard-tools.zip https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-1ee37b8e4833a25efe6f1fc0d5bdcb476148f4ba .zip ed0739bc3e5a7021a59d4cc4fc63e5fb60a0cb8628d30515a747bfbdcf1fdb0a " --exclude wg-quick --strip-components 1" || goto :error
23+ call :download wireguard-tools.zip https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-a92d534395227ded1595c25ab250266ab18e377a .zip 9fad2fe0bf3303a6b9e970096ecdfbaea8cb73cd260d6bdb1718a584e888bfff " --exclude wg-quick --strip-components 1" || goto :error
2424 call :download wireguard-nt.zip https://download.wireguard.com/wireguard-nt/wireguard-nt-0.10.1.zip 772c0b1463d8d2212716f43f06f4594d880dea4f735165bd68e388fc41b81605 || goto :error
2525 copy /y NUL prepared > NUL || goto :error
2626 cd .. || goto :error
@@ -36,7 +36,7 @@ if exist .deps\prepared goto :render
3636 set GOOS = windows
3737 set GOARM = 7
3838 set GOPATH = %BUILDDIR% .deps\gopath
39- set GOROOT = %BUILDDIR% .deps\go
39+ set GOROOT = %BUILDDIR% .deps
4040 if " %GoGenerate% " == " yes" (
4141 echo [+] Regenerating files
4242 go generate ./... || exit /b 1
0 commit comments