mirror of
https://github.com/winfsp/winfsp.git
synced 2025-06-15 00:02:46 -05:00
tools: build.bat: winfsp-tests zip file
This commit is contained in:
@ -83,11 +83,11 @@ for %%f in (build\%Configuration%\winfsp-*.msi) do (
|
||||
|
||||
if not %signfail%==0 echo SIGNING FAILED! The product has been successfully built, but not signed.
|
||||
|
||||
for %%f in (build\%Configuration%\winfsp-*.msi) do set Version=%%~nf
|
||||
set Version=!Version:winfsp-=!
|
||||
|
||||
where /q choco.exe
|
||||
if %ERRORLEVEL% equ 0 (
|
||||
for %%f in (build\%Configuration%\winfsp-*.msi) do set Version=%%~nf
|
||||
set Version=!Version:winfsp-=!
|
||||
|
||||
copy ..\choco\* build\%Configuration%
|
||||
copy ..\choco\LICENSE.TXT /B + ..\..\License.txt /B build\%Configuration%\LICENSE.txt /B
|
||||
certutil -hashfile build\%Configuration%\winfsp-!Version!.msi SHA256 >>build\%Configuration%\VERIFICATION.txt
|
||||
@ -95,6 +95,11 @@ 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
|
||||
|
Reference in New Issue
Block a user