aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/installer/build.bat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-08-09 09:13:10 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-08-12 09:19:39 +0200
commit356048e2a95502a37e4ce413ddbefab5320737db (patch)
tree682ffed5ee3e0d38273e40b2017a30acafe40687 /installer/build.bat
parentbuild: fix batch file status returning (diff)
downloadwireguard-windows-356048e2a95502a37e4ce413ddbefab5320737db.tar.xz
wireguard-windows-356048e2a95502a37e4ce413ddbefab5320737db.zip
installer: clean up logic
Diffstat (limited to 'installer/build.bat')
-rw-r--r--installer/build.bat3
1 files changed, 1 insertions, 2 deletions
diff --git a/installer/build.bat b/installer/build.bat
index 8d438af9..1f9fa729 100644
--- a/installer/build.bat
+++ b/installer/build.bat
@@ -61,9 +61,8 @@ if exist .deps\prepared goto :build
set LDFLAGS=-shared -s -Wl,--kill-at -Wl,--major-os-version=6 -Wl,--minor-os-version=1 -Wl,--major-subsystem-version=6 -Wl,--minor-subsystem-version=1
set LDLIBS=-lmsi -lole32 -lshlwapi
if not exist "%~1" mkdir "%~1"
- echo [+] Compiling custom actions %1
- %CC% %CFLAGS% %LDFLAGS% -o "%~1\customactions.dll" customactions.c %LDLIBS% || exit /b 1
echo [+] Compiling %1
+ %CC% %CFLAGS% %LDFLAGS% -o "%~1\customactions.dll" customactions.c %LDLIBS% || exit /b 1
"%WIX%bin\candle" %WIX_CANDLE_FLAGS% -dWIREGUARD_PLATFORM="%~1" -out "%~1\wireguard.wixobj" -arch %3 wireguard.wxs || exit /b %errorlevel%
echo [+] Linking %1
"%WIX%bin\light" %WIX_LIGHT_FLAGS% -out "dist\wireguard-%~1-%WIREGUARD_VERSION%.msi" "%~1\wireguard.wixobj" || exit /b %errorlevel%