From ab1e024965c4251360351dcd77376fa2363d9ec3 Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Sat, 16 Nov 2019 16:05:40 -0800 Subject: [PATCH] tools: build.bat: fix winfsp-tests zip file build --- tools/build.bat | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/build.bat b/tools/build.bat index 1db42212..d43f950d 100755 --- a/tools/build.bat +++ b/tools/build.bat @@ -86,6 +86,13 @@ if not %signfail%==0 echo SIGNING FAILED! The product has been successfully buil for %%f in (build\%Configuration%\winfsp-*.msi) do set Version=%%~nf set Version=!Version:winfsp-=! +if X%SignedPackage%==X ( + pushd build\%Configuration% + powershell -command "Compress-Archive -Path winfsp-tests-*.exe,..\..\..\..\License.txt,..\..\..\..\tst\winfsp-tests\README.md -DestinationPath winfsp-tests-!Version!.zip" + if errorlevel 1 goto fail + popd +) + where /q choco.exe if %ERRORLEVEL% equ 0 ( copy ..\choco\* build\%Configuration% @@ -95,11 +102,6 @@ if %ERRORLEVEL% equ 0 ( if errorlevel 1 goto fail ) -pushd build\%Configuration% -powershell -command "Compress-Archive -Path winfsp-tests-*.exe,..\..\..\..\License.txt,..\..\..\..\tst\winfsp-tests\README.md -DestinationPath winfsp-tests-!Version!.zip" -if errorlevel 1 goto fail -popd - exit /b 0 :fail