diff options
| -rw-r--r-- | .appveyor.yml | 3 | ||||
| -rw-r--r-- | 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 { |
