mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Instead of -dPlatform a recent update in the WiX files are demanding the parameter -arch, although this parameter is not valid nor needed while running "light".
30 lines
983 B
Batchfile
30 lines
983 B
Batchfile
|
|
|
|
set PATH="%PATH%;C:\Program Files (x86)\WiX Toolset v3.8\bin;C:\Program Files (x86)\WiX Toolset v3.7\bin;"
|
|
set CURRENT_DIR=%cd%
|
|
|
|
del installer.wix*
|
|
|
|
"candle.exe" -ext WixUtilExtension -ext WixUIExtension "%CURRENT_DIR%\installer.wxs" -out "%CURRENT_DIR%\installer.wixobj" -arch x64
|
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
|
|
"light.exe" -ext WixUtilExtension -ext WixUIExtension "%CURRENT_DIR%\installer.wixobj" -out "%CURRENT_DIR%\installer-64.msi"
|
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
|
|
"candle.exe" -ext WixUtilExtension -ext WixUIExtension "%CURRENT_DIR%\installer.wxs" -out "%CURRENT_DIR%\installer.wixobj" -arch x86
|
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
|
|
"light.exe" -ext WixUtilExtension -ext WixUIExtension "%CURRENT_DIR%\installer.wixobj" -out "%CURRENT_DIR%\installer-32.msi"
|
|
@if NOT (%ERRORLEVEL%) == (0) goto build_failed
|
|
|
|
exit /B 0
|
|
|
|
:build_failed
|
|
@echo Problems during the building phase
|
|
@goto failed
|
|
|
|
:failed
|
|
@cd %CURRENT_DIR%
|
|
@exit /B 1
|
|
|