appveyor: use VS2015 to build post-ARM64

This commit is contained in:
Bill Zissimopoulos
2021-12-16 11:35:38 +00:00
parent 6ab1ed3b7f
commit 5a44f4a233
2 changed files with 20 additions and 2 deletions

View File

@ -24,6 +24,13 @@ if X%~nx0==Xbuild-choco.bat (
goto :choco
)
set BuildArm64=yes
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (
echo WARNING: APPVEYOR BUILD ON UNSUPPORTED VERSION OF VISUAL STUDIO.
echo:
set BuildArm64=no
)
call "%~dp0vcvarsall.bat" x64
if not X%SignedPackage%==X (
@ -44,12 +51,21 @@ if X%SignedPackage%==X (
if exist "%%d" rmdir /s/q "%%d"
)
devenv winfsp.sln /build "%Configuration%|ARM64"
if errorlevel 1 goto fail
if X%BuildArm64%==Xyes (
devenv winfsp.sln /build "%Configuration%|ARM64"
if errorlevel 1 goto fail
)
devenv winfsp.sln /build "%Configuration%|x64"
if errorlevel 1 goto fail
devenv winfsp.sln /build "%Configuration%|x86"
if errorlevel 1 goto fail
if X%BuildArm64%==Xno (
echo:
echo WARNING: APPVEYOR BUILD ON UNSUPPORTED VERSION OF VISUAL STUDIO.
echo WARNING: ARM64 BUILD PRODUCTS ARE COPIES OF X64 BUILD PRODUCTS.
echo:
copy build\%Configuration%\*-x64.* build\%Configuration%\*-a64.* >nul
)
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