[Windows OS] Include Microsoft Game Development Kit (GDK) to image (#4097)
This commit is contained in:
@@ -324,6 +324,13 @@ function Get-PipxVersion {
|
||||
return "Pipx $pipxVersion"
|
||||
}
|
||||
|
||||
function Get-GDKVersion {
|
||||
$regKey = "HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
$GDKRelease = $installedApplications | Where-Object DisplayName -match "Microsoft Game Development Kit"
|
||||
return "$($GDKRelease.DisplayName) $($GDKRelease.DisplayVersion)"
|
||||
}
|
||||
|
||||
function Build-PackageManagementEnvironmentTable {
|
||||
$envVariables = @(
|
||||
@{
|
||||
|
||||
@@ -123,6 +123,11 @@ $toolsList = @(
|
||||
(Get-ZstdVersion),
|
||||
(Get-YAMLLintVersion)
|
||||
)
|
||||
if (Test-IsWin19) {
|
||||
$toolsList += @(
|
||||
(Get-GDKVersion)
|
||||
)
|
||||
}
|
||||
if ((Test-IsWin16) -or (Test-IsWin19)) {
|
||||
$toolsList += @(
|
||||
(Get-NSISVersion),
|
||||
|
||||
Reference in New Issue
Block a user