tools: build.bat: fix target SDK for AppVeyor

This commit is contained in:
Bill Zissimopoulos 2025-04-25 20:18:21 +01:00
parent fb14262e43
commit 6803bb4136

View File

@ -28,9 +28,11 @@ set BuildArm64=yes
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (
set BuildArm64=no
set UseDotnetSdk=yes
set FixWindowsSdk=yes
)
if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (
set BuildArm64=no
set FixWindowsSdk=yes
)
if X%BuildArm64%==Xno (
echo WARNING: APPVEYOR BUILD ON UNSUPPORTED VERSION OF VISUAL STUDIO.
@ -61,6 +63,11 @@ if X%SignedPackage%==X (
if exist "%%d" rmdir /s/q "%%d"
)
if X%FixWindowsSdk%==Xyes (
powershell -command "($xml=[xml](Get-Content 'build.version.props')).Project.PropertyGroup.MyTargetPlatformVersion='$(LatestTargetPlatformVersion)'; $xml.Save('build.version.props')"
if errorlevel 1 goto fail
)
if X%BuildArm64%==Xyes (
devenv winfsp.sln /build "%Configuration%|ARM64"
if errorlevel 1 goto fail