mirror of
				https://github.com/winfsp/winfsp.git
				synced 2025-10-29 11:08:37 -05:00 
			
		
		
		
	tools: build.bat: better exit code handling to allow for CI
This commit is contained in:
		| @@ -14,16 +14,31 @@ cd %~dp0..\build\VStudio | ||||
| if exist build\ del /s/q build >nul | ||||
|  | ||||
| devenv winfsp.sln /build "%Configuration%|x64" | ||||
| if errorlevel 1 goto fail | ||||
| devenv winfsp.sln /build "%Configuration%|x86" | ||||
| if errorlevel 1 goto fail | ||||
|  | ||||
| set signfail=0 | ||||
| for %%f in (build\%Configuration%\winfsp-x64.sys build\%Configuration%\winfsp-x86.sys) do ( | ||||
| 	signtool sign /ac %CrossCert% /i %Issuer% /n %Subject% /fd sha1 /t http://timestamp.digicert.com %%f | ||||
| 	if errorlevel 1 set /a signfail=signfail+1 | ||||
| 	signtool sign /as /ac %CrossCert% /i %Issuer% /n %Subject% /fd sha256 /tr http://timestamp.digicert.com /td sha256 %%f | ||||
| 	if errorlevel 1 set /a signfail=signfail+1 | ||||
| ) | ||||
|  | ||||
| devenv winfsp.sln /build "Installer.%Configuration%|x86" | ||||
| if errorlevel 1 goto fail | ||||
|  | ||||
| for %%f in (build\%Configuration%\winfsp-*.msi) do ( | ||||
| 	signtool sign /ac %CrossCert% /i %Issuer% /n %Subject% /fd sha1 /t http://timestamp.digicert.com /d %MsiName% %%f | ||||
| 	if errorlevel 1 set /a signfail=signfail+1 | ||||
| 	REM signtool sign /ac %CrossCert% /i %Issuer% /n %Subject% /fd sha256 /tr http://timestamp.digicert.com /td sha256 /d %MsiName% %%f | ||||
| 	REM if errorlevel 1 set /a signfail=signfail+1 | ||||
| ) | ||||
|  | ||||
| if not %signfail%==0 echo SIGNING FAILED! | ||||
|  | ||||
| exit /b 0 | ||||
|  | ||||
| :fail | ||||
| exit /b 1 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user