mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
tools: build-choco.bat: copy from build.bat
This commit is contained in:
parent
cf13cac438
commit
2ed46a39fa
@ -24,6 +24,19 @@ if X%~nx0==Xbuild-choco.bat (
|
|||||||
goto :choco
|
goto :choco
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set BuildArm64=yes
|
||||||
|
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (
|
||||||
|
set BuildArm64=no
|
||||||
|
)
|
||||||
|
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (
|
||||||
|
set BuildArm64=no
|
||||||
|
)
|
||||||
|
if X%BuildArm64%==Xno (
|
||||||
|
echo WARNING: APPVEYOR BUILD ON UNSUPPORTED VERSION OF VISUAL STUDIO.
|
||||||
|
echo WARNING: ARM64 BUILD PRODUCTS ARE COPIES OF X64 BUILD PRODUCTS.
|
||||||
|
echo:
|
||||||
|
)
|
||||||
|
|
||||||
call "%~dp0vcvarsall.bat" x64
|
call "%~dp0vcvarsall.bat" x64
|
||||||
|
|
||||||
if not X%SignedPackage%==X (
|
if not X%SignedPackage%==X (
|
||||||
@ -44,12 +57,20 @@ if X%SignedPackage%==X (
|
|||||||
if exist "%%d" rmdir /s/q "%%d"
|
if exist "%%d" rmdir /s/q "%%d"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if X%BuildArm64%==Xyes (
|
||||||
|
devenv winfsp.sln /build "%Configuration%|ARM64"
|
||||||
|
if errorlevel 1 goto fail
|
||||||
|
)
|
||||||
devenv winfsp.sln /build "%Configuration%|x64"
|
devenv winfsp.sln /build "%Configuration%|x64"
|
||||||
if errorlevel 1 goto fail
|
if errorlevel 1 goto fail
|
||||||
devenv winfsp.sln /build "%Configuration%|x86"
|
devenv winfsp.sln /build "%Configuration%|x86"
|
||||||
if errorlevel 1 goto fail
|
if errorlevel 1 goto fail
|
||||||
|
if X%BuildArm64%==Xno (
|
||||||
|
copy build\%Configuration%\*-x64.* build\%Configuration%\*-a64.* >nul
|
||||||
|
if errorlevel 1 goto fail
|
||||||
|
)
|
||||||
|
|
||||||
for %%f in (build\%Configuration%\%MyProductFileName%-x64.sys build\%Configuration%\%MyProductFileName%-x86.sys) do (
|
for %%f in (build\%Configuration%\%MyProductFileName%-a64.sys build\%Configuration%\%MyProductFileName%-x64.sys build\%Configuration%\%MyProductFileName%-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
|
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
|
||||||
@ -69,6 +90,9 @@ if X%SignedPackage%==X (
|
|||||||
echo .Set Compress=on >>driver.ddf
|
echo .Set Compress=on >>driver.ddf
|
||||||
echo .Set CabinetNameTemplate=driver.cab >>driver.ddf
|
echo .Set CabinetNameTemplate=driver.cab >>driver.ddf
|
||||||
echo .Set DiskDirectory1=. >>driver.ddf
|
echo .Set DiskDirectory1=. >>driver.ddf
|
||||||
|
echo .Set DestinationDir=a64 >>driver.ddf
|
||||||
|
echo driver-a64.inf >>driver.ddf
|
||||||
|
echo %MyProductFileName%-a64.sys >>driver.ddf
|
||||||
echo .Set DestinationDir=x64 >>driver.ddf
|
echo .Set DestinationDir=x64 >>driver.ddf
|
||||||
echo driver-x64.inf >>driver.ddf
|
echo driver-x64.inf >>driver.ddf
|
||||||
echo %MyProductFileName%-x64.sys >>driver.ddf
|
echo %MyProductFileName%-x64.sys >>driver.ddf
|
||||||
@ -76,7 +100,7 @@ if X%SignedPackage%==X (
|
|||||||
echo driver-x86.inf >>driver.ddf
|
echo driver-x86.inf >>driver.ddf
|
||||||
echo %MyProductFileName%-x86.sys >>driver.ddf
|
echo %MyProductFileName%-x86.sys >>driver.ddf
|
||||||
makecab /F driver.ddf
|
makecab /F driver.ddf
|
||||||
signtool sign /ac %CrossCert% /i %Issuer% /n %Subject% /t http://timestamp.digicert.com driver.cab
|
signtool sign /ac %CrossCert% /i %Issuer% /n %Subject% /fd sha256 /tr http://timestamp.digicert.com /td sha256 driver.cab
|
||||||
if errorlevel 1 set /a signfail=signfail+1
|
if errorlevel 1 set /a signfail=signfail+1
|
||||||
popd
|
popd
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user