diff options
author | Simon Rozman <simon@rozman.si> | 2019-04-25 14:01:12 +0200 |
---|---|---|
committer | Simon Rozman <simon@rozman.si> | 2019-04-25 14:01:12 +0200 |
commit | 570a4777165e54f4e4d81ed9bea68d38ae735c5f (patch) | |
tree | d1bb344b13069ea565e3ed28d047827115dde3d8 | |
parent | ringlogger: ensure that int64 in member is 64-bit aligned on 32-bit machines (diff) | |
download | wireguard-windows-570a4777165e54f4e4d81ed9bea68d38ae735c5f.tar.xz wireguard-windows-570a4777165e54f4e4d81ed9bea68d38ae735c5f.zip |
build: %errorlevel% doesn't seem to be set after curl and go calls
Signed-off-by: Simon Rozman <simon@rozman.si>
-rw-r--r-- | build.bat | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -57,7 +57,7 @@ if exist .deps\prepared goto :build :download echo [+] Downloading %1 - curl -#fLo %1 %2 || exit /b %errorlevel% + curl -#fLo %1 %2 || exit /b 1 echo [+] Verifying %1 for /f %%a in ('CertUtil -hashfile %1 SHA256 ^| findstr /r "^[0-9a-f]*$"') do if not "%%a"=="%~3" exit /b 1 goto :eof @@ -71,6 +71,6 @@ if exist .deps\prepared goto :build echo [+] Assembling resources %1 windres.exe -i resources.rc -o resources.syso -O coff || exit /b %errorlevel% echo [+] Building program %1 - go build -ldflags="-H windowsgui -s -w" -v -o "%~1\wireguard.exe" || exit /b %errorlevel% + go build -ldflags="-H windowsgui -s -w" -v -o "%~1\wireguard.exe" || exit /b 1 set PATH=%OLDPATH2% goto :eof |