packaging are installed because python 3.12 need it Install of vulkan-sdk improved so that it's can be running in non-docker environment Now vulkan-sdk have separate script so that it can be updated without update MSVC THe choco installed packages is almost freeze to update, so split install of vulkan sdk out of it for avoid update it when update VULKAN_SDK_VERSION on local computer --params="/InstallDir:C:\python3" won't take effect, drop it for not misleading Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26736>
40 lines
1.6 KiB
PowerShell
40 lines
1.6 KiB
PowerShell
# Downloading specified vulkan sdk and vulkan runtime
|
|
# Touch this file needs update both WINDOWS_X64_BUILD_TAG WINDOWS_X64_TEST_TAG
|
|
# This file needs run in administrator mode
|
|
|
|
$env:VULKAN_SDK_VERSION="1.3.211.0"
|
|
|
|
$ProgressPreference = "SilentlyContinue"
|
|
|
|
# Save environment VULKAN_SDK_VERSION to system
|
|
[System.Environment]::SetEnvironmentVariable('VULKAN_SDK_VERSION', "$env:VULKAN_SDK_VERSION", [System.EnvironmentVariableTarget]::Machine)
|
|
|
|
$VULKAN_SDK_URL="https://sdk.lunarg.com/sdk/download/$env:VULKAN_SDK_VERSION/windows/VulkanSDK-$env:VULKAN_SDK_VERSION-Installer.exe"
|
|
Write-Host "Downloading Vulkan-SDK $VULKAN_SDK_URL at:"
|
|
Get-Date
|
|
Invoke-WebRequest -Uri "$VULKAN_SDK_URL" -OutFile "${env:TMP}\vulkan_sdk.exe" | Out-Null
|
|
Write-Host "Installing Vulkan-SDK at:"
|
|
Get-Date
|
|
Start-Process -NoNewWindow -Wait "${env:TMP}\vulkan_sdk.exe" -ArgumentList "--am --al -c in"
|
|
if (!$?) {
|
|
Write-Host "Failed to install Vulkan SDK"
|
|
Exit 1
|
|
}
|
|
Remove-Item "${env:TMP}\vulkan_sdk.exe" -Force
|
|
|
|
$VULKAN_RUNTIME_URL="https://sdk.lunarg.com/sdk/download/$env:VULKAN_SDK_VERSION/windows/VulkanRT-$env:VULKAN_SDK_VERSION-Installer.exe"
|
|
Write-Host "Downloading Vulkan-Runtime $VULKAN_RUNTIME_URL at:"
|
|
Get-Date
|
|
Invoke-WebRequest -Uri "$VULKAN_RUNTIME_URL" -OutFile "${env:TMP}\vulkan-runtime.exe" | Out-Null
|
|
Write-Host "Installing Vulkan-Runtime at:"
|
|
Get-Date
|
|
Start-Process -NoNewWindow -Wait "${env:TMP}\vulkan-runtime.exe" -ArgumentList '/S'
|
|
if (!$?) {
|
|
Write-Host "Failed to install Vulkan-Runtime"
|
|
Exit 1
|
|
}
|
|
Remove-Item "${env:TMP}\vulkan-runtime.exe" -Force
|
|
|
|
Write-Host "Installing Vulkan-Runtime finished at:"
|
|
Get-Date
|