aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.bat
diff options
context:
space:
mode:
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat4
1 files changed, 4 insertions, 0 deletions
diff --git a/build.bat b/build.bat
index 53cc5531..f951f069 100644
--- a/build.bat
+++ b/build.bat
@@ -70,6 +70,10 @@ if exist .deps\prepared goto :render
mkdir %1 >NUL 2>&1
echo [+] Assembling resources %1
windres -i resources.rc -o resources.syso -O coff || exit /b %errorlevel%
+ if "%GenerateLocalizations%|%1"=="yes|x86" (
+ echo [+] Generating localizations %1
+ go generate || exit /b 1
+ )
echo [+] Building program %1
go build -ldflags="-H windowsgui -s -w" -tags walk_use_cgo -trimpath -v -o "%~1\wireguard.exe" || exit /b 1
if not exist "%~1\wg.exe" (