[Windows OS] Include Microsoft Game Development Kit (GDK) to image (#4097)

This commit is contained in:
Maksim Shilov
2021-09-20 13:06:52 +03:00
committed by GitHub
parent 9fe940e8a3
commit ebedfbc739
5 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
################################################################################
## File: Install-GDK.ps1
## Desc: Install Microsoft Game Developement Kit
################################################################################
# Preparation
$tempFolder = Join-Path $env:Tmp "GDK"
# Fetching Microsoft GDK release version
$GDKReleaseVersion = (Invoke-RestMethod -Uri "https://api.github.com/repos/microsoft/GDK/releases/latest").tag_name
# Cloning GDK repo and checking out to release
git clone --depth 1 --branch $GDKReleaseVersion "https://github.com/microsoft/GDK.git" $tempFolder
# Installing GDK
$GDKInstaller = Join-Path $tempFolder "pgdk.exe"
Install-Binary -FilePath $GDKInstaller -ArgumentList ("/quiet", "/norestart")
Invoke-PesterTests -Testfile "Tools" -TestName "Microsoft GDK"