mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
tools: build.bat: fix winfsp-tests zip file build
This commit is contained in:
parent
5a67c47d0f
commit
ab1e024965
@ -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
|
for %%f in (build\%Configuration%\winfsp-*.msi) do set Version=%%~nf
|
||||||
set Version=!Version:winfsp-=!
|
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
|
where /q choco.exe
|
||||||
if %ERRORLEVEL% equ 0 (
|
if %ERRORLEVEL% equ 0 (
|
||||||
copy ..\choco\* build\%Configuration%
|
copy ..\choco\* build\%Configuration%
|
||||||
@ -95,11 +102,6 @@ if %ERRORLEVEL% equ 0 (
|
|||||||
if errorlevel 1 goto fail
|
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
|
exit /b 0
|
||||||
|
|
||||||
:fail
|
:fail
|
||||||
|
Loading…
x
Reference in New Issue
Block a user