mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
tools: build.bat: better exit code handling to allow for CI
This commit is contained in:
parent
f7adbaba92
commit
f2241fcee4
@ -14,16 +14,31 @@ cd %~dp0..\build\VStudio
|
|||||||
if exist build\ del /s/q build >nul
|
if exist build\ del /s/q build >nul
|
||||||
|
|
||||||
devenv winfsp.sln /build "%Configuration%|x64"
|
devenv winfsp.sln /build "%Configuration%|x64"
|
||||||
|
if errorlevel 1 goto fail
|
||||||
devenv winfsp.sln /build "%Configuration%|x86"
|
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 (
|
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
|
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
|
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"
|
devenv winfsp.sln /build "Installer.%Configuration%|x86"
|
||||||
|
if errorlevel 1 goto fail
|
||||||
|
|
||||||
for %%f in (build\%Configuration%\winfsp-*.msi) do (
|
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
|
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 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user