summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdonais Romero González <[email protected]>2023-09-22 10:47:40 -0700
committerAdonais Romero González <[email protected]>2023-09-22 10:47:40 -0700
commit84cff3238e5cdddec2e3a68e7afda29bdce4a8a7 (patch)
treea043582ff7b14fa0426dd4a7645c29931f15e401
parent2639b5d65fa4777c669c45be8f1a13142b0e49a0 (diff)
Add winget configuration files for WDK 22621
-rw-r--r--.github/CODEOWNERS3
-rw-r--r--configurations/configuration.dsc.yaml75
2 files changed, 78 insertions, 0 deletions
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 0631c196..4b535025 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -4,5 +4,8 @@
# Code Scanning workflow
/.github/workflows/Code-Scanning.yml @microsoft/driver-samples-maintainers
+# Configuration description files
+/configurations/ @microsoft/driver-samples-maintainers
+
# Root files
/* @microsoft/driver-samples-maintainers
diff --git a/configurations/configuration.dsc.yaml b/configurations/configuration.dsc.yaml
new file mode 100644
index 00000000..62abdf99
--- /dev/null
+++ b/configurations/configuration.dsc.yaml
@@ -0,0 +1,75 @@
+# yaml-language-server: $schema=https://aka.ms/configuration-dsc-schema/0.2
+properties:
+ resources:
+ - resource: Microsoft.WinGet.DSC/WinGetPackage
+ id: vsPackage
+ directives:
+ description: Install Visual Studio Community 2022
+ allowPrerelease: true
+ settings:
+ id: Microsoft.VisualStudio.2022.Community
+ source: winget
+ - resource: Microsoft.VisualStudio.DSC/VSComponents
+ id: vsComponents
+ dependsOn:
+ - vsPackage
+ directives:
+ description: Install required VS workloads
+ allowPrerelease: true
+ settings:
+ productId: Microsoft.VisualStudio.Product.Community
+ channelId: VisualStudio.17.Release
+ includeRecommended: false
+ components:
+ - Microsoft.VisualStudio.Component.VC.CoreBuildTools
+ - Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core
+ - Microsoft.VisualStudio.Component.VC.Tools.x86.x64
+ - Microsoft.VisualStudio.Component.VC.Tools.ARM64
+ - Microsoft.VisualStudio.Component.VC.Tools.ARM64EC
+ - Microsoft.VisualStudio.Component.VC.Runtimes.x86.x64.Spectre
+ - Microsoft.VisualStudio.Component.VC.Runtimes.ARM64.Spectre
+ - Microsoft.VisualStudio.Component.VC.Runtimes.ARM64EC.Spectre
+ - Microsoft.VisualStudio.Component.VC.Redist.14.Latest
+ - Microsoft.VisualStudio.Component.Windows10SDK
+ - Microsoft.VisualStudio.Component.VC.ATL
+ - Microsoft.VisualStudio.Component.VC.ATL.ARM64
+ - Microsoft.VisualStudio.Component.VC.ATL.Spectre
+ - Microsoft.VisualStudio.Component.VC.ATL.ARM64.Spectre
+ - Microsoft.VisualStudio.Component.VC.ATLMFC
+ - Microsoft.VisualStudio.Component.VC.ATLMFC.Spectre
+ - Microsoft.VisualStudio.Component.VC.ASAN
+ - Microsoft.VisualStudio.Component.NuGet.BuildTools
+ - Microsoft.VisualStudio.Component.VC.MFC.ARM64
+ - Microsoft.VisualStudio.Component.VC.MFC.ARM64.Spectre
+ - Microsoft.VisualStudio.Workload.NativeDesktop
+ - Microsoft.VisualStudio.Component.Windows11SDK.22621
+ - resource: Microsoft.WinGet.DSC/WinGetPackage
+ id: wdkPackage
+ dependsOn:
+ - vsComponents
+ directives:
+ description: Install Windows Driver Kit
+ allowPrerelease: true
+ settings:
+ id: Microsoft.WindowsWDK.10.0.22621
+ source: winget
+ - resource: PSDscResources/Script
+ id: wdkVsix
+ dependsOn:
+ - wdkPackage
+ - vsComponents
+ directives:
+ description: Install Windows Driver Kit VSIX
+ settings:
+ GetScript: |
+ return & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -nologo -latest -products Microsoft.VisualStudio.Product.Community -requires Microsoft.Windows.DriverKit -property installationVersion
+ SetScript: |
+ $path = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -nologo -latest -products * -property enginePath | Join-Path -ChildPath 'VSIXInstaller.exe'
+ if (Test-Path $path) { & $path /q "${env:ProgramFiles(x86)}\Windows Kits\10\Vsix\VS2022\10.0.22621.0\WDK.vsix" }
+ TestScript: |
+ $versionString = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe" -nologo -latest -products Microsoft.VisualStudio.Product.Community -requires Microsoft.Windows.DriverKit -Property installationVersion
+ if (-not $versionString) { return $false }
+ $versionArray = $versionString.Split('.')
+ if ($versionArray[0] -le 17) { return $false }
+ return $true
+ configurationVersion: 0.2.0