diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-09 16:36:12 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-13 14:42:54 +0100 |
commit | 74799c9581ac68c722422593cacf0df46040dc23 (patch) | |
tree | 50eb1daae583d05cc17adfbaeb00744b27f87fae /build.bat | |
parent | build: bump wintun hash (diff) | |
download | wireguard-windows-74799c9581ac68c722422593cacf0df46040dc23.tar.xz wireguard-windows-74799c9581ac68c722422593cacf0df46040dc23.zip |
build: make arm64 binary by copying arm binary
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'build.bat')
-rw-r--r-- | build.bat | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -52,6 +52,7 @@ if exist .deps\prepared goto :render call :build_plat x86 i686 386 || goto :error call :build_plat amd64 x86_64 amd64 || goto :error call :build_plat arm armv7 arm || goto :error + call :build_plat arm64 aarch64 arm64 || goto :error :sign if exist .\sign.bat call .\sign.bat @@ -81,7 +82,11 @@ if exist .deps\prepared goto :render echo [+] Assembling resources %1 %~2-w64-mingw32-windres -I ".deps\wintun\bin\%~1" -DWIREGUARD_VERSION_ARRAY=%WIREGUARD_VERSION_ARRAY% -DWIREGUARD_VERSION_STR=%WIREGUARD_VERSION% -i resources.rc -o "resources_%~3.syso" -O coff -c 65001 || exit /b %errorlevel% echo [+] Building program %1 - go build -ldflags="-H windowsgui -s -w" -trimpath -v -o "%~1\wireguard.exe" || exit /b 1 + if %1==arm64 ( + copy "arm\wireguard.exe" "%~1\wireguard.exe" || exit /b 1 + ) else ( + go build -ldflags="-H windowsgui -s -w" -trimpath -v -o "%~1\wireguard.exe" || exit /b 1 + ) if not exist "%~1\wg.exe" ( echo [+] Building command line tools %1 del .deps\src\*.exe .deps\src\*.o .deps\src\wincompat\*.o 2> NUL |