@@ -118,7 +118,7 @@ robocopy ".\rules" "%RELEASE_DIR%\Rules" /E /S /XF *.md *.png
118118
119119:: Download the embedded Python distribution
120120echo Downloading Python %PYTHON_VER% ...
121- powershell -Command " Invoke-WebRequest %PYTHON_URL% -OutFile %RELEASE_DIR% \python.zip"
121+ powershell -Command " Invoke-WebRequest %PYTHON_URL% -OutFile %RELEASE_DIR% \python.zip" || goto : fail
122122
123123echo Extracting Python distribution...
124124powershell -Command " Expand-Archive %RELEASE_DIR% \python.zip -DestinationPath %RELEASE_DIR% \python"
@@ -146,9 +146,9 @@ copy %SystemRoot%\System32\dbghelp.dll "%RELEASE_DIR%\Bin"
146146echo Building MSI package...
147147pushd .
148148cd build/msi
149- wix extension add WixToolset.UI.wixext || exit /b
150- wix extension add WixToolset.Util.wixext || exit /b
151- wix build -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext -b dir=fibratus-%VERSION% fibratus.wxs -arch x64 -d VERSION=%VERSION% -o fibratus-%VERSION% -amd64.msi || exit /b
149+ wix extension add WixToolset.UI.wixext || goto : fail
150+ wix extension add WixToolset.Util.wixext || goto : fail
151+ wix build -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext -b dir=fibratus-%VERSION% fibratus.wxs -arch x64 -d VERSION=%VERSION% -o fibratus-%VERSION% -amd64.msi || goto : fail
152152popd
153153echo fibratus-%VERSION% -amd64.msi MSI package built successfully
154154
@@ -180,14 +180,12 @@ copy %SystemRoot%\System32\dbghelp.dll "%RELEASE_DIR%\Bin"
180180echo Building MSI package...
181181pushd .
182182cd build/msi
183- wix extension add WixToolset.UI.wixext || exit /b
184- wix extension add WixToolset.Util.wixext || exit /b
185- wix build -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext -b dir=fibratus-%VERSION% -slim fibratus.wxs -arch x64 -d VERSION=%VERSION% -o fibratus-%VERSION% -slim-amd64.msi || exit /b
183+ wix extension add WixToolset.UI.wixext || goto : fail
184+ wix extension add WixToolset.Util.wixext || goto : fail
185+ wix build -ext WixToolset.UI.wixext -ext WixToolset.Util.wixext -b dir=fibratus-%VERSION% -slim fibratus.wxs -arch x64 -d VERSION=%VERSION% -o fibratus-%VERSION% -slim-amd64.msi || goto : fail
186186popd
187187echo fibratus-%VERSION% -slim-amd64.msi MSI package built successfully
188188
189- if errorlevel 1 goto fail
190-
191189goto :EOF
192190
193191:clean
0 commit comments