From d4e9e941da4dbd2f338fd9a1e3d13df56dc3a02f Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 14 Jun 2026 20:36:37 +0200 Subject: scripts/build.ps1: add WDK version as a parameter --- .appveyor.yml | 3 ++- scripts/build.ps1 | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index a6dccbd..add6b7e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -43,7 +43,8 @@ build_script: .\scripts\build.ps1 ` -InstallDir ..\build\install ` -Configuration "$Env:TARGET_OS $Env:CONFIGURATION" ` - -Platform $Env:PLATFORM + -Platform $Env:PLATFORM ` + -WDK wdk8.1update after_build: - 7z.exe a "%APPVEYOR_PROJECT_NAME%-%PLATFORM%-%CONFIGURATION%-%TARGET_OS%.zip" "..\build\install\*" diff --git a/scripts/build.ps1 b/scripts/build.ps1 index a68caad..900a2d3 100644 --- a/scripts/build.ps1 +++ b/scripts/build.ps1 @@ -4,7 +4,9 @@ param( [Parameter(Mandatory=$true)] [string] $Platform = $null, [Parameter(Mandatory=$true)] - [string] $Configuration = $null + [string] $Configuration = $null, + [Parameter(Mandatory=$true)] + [string] $WDK = $null ) $ErrorActionPreference = "Stop"; @@ -39,7 +41,7 @@ function Get-DriverBuildDir { [string] $DriverName ) - return "$script:PSScriptRoot\..\km\build\wdk8.1update\$DriverName" + return "$script:PSScriptRoot\..\km\build\$script:WDK\$DriverName" } function Get-DriverSolutionPath { -- cgit v1.3