diff --git a/dist/platforms/windows/entrypoint.ps1 b/dist/platforms/windows/entrypoint.ps1 index 1163f9e5..43e9b8e6 100644 --- a/dist/platforms/windows/entrypoint.ps1 +++ b/dist/platforms/windows/entrypoint.ps1 @@ -13,7 +13,7 @@ Get-Process -Name regsvr32 | ForEach-Object { Stop-Process -Id $_.Id -Force } # Setup Git Credentials . "c:\steps\set_gitcredential.ps1" -if ($env:ENABLE_GPU -ne "true") { +if ($env:ENABLE_GPU -e "true") { # Install LLVMpipe software graphics driver . "c:\steps\install_llvmpipe.ps1" } diff --git a/dist/platforms/windows/install_llvmpipe.ps1 b/dist/platforms/windows/install_llvmpipe.ps1 index 0e942b12..fa88d2ea 100644 --- a/dist/platforms/windows/install_llvmpipe.ps1 +++ b/dist/platforms/windows/install_llvmpipe.ps1 @@ -2,12 +2,13 @@ $Private:repo = "mmozeiko/build-mesa" $Private:downloadPath = "$Env:TEMP\mesa.zip" $Private:extractPath = "$Env:TEMP\mesa" $Private:destinationPath = "$Env:UNITY_PATH\Editor\" +$Private:version = "25.1.0" $LLVMPIPE_INSTALLED = "false" try { - # Get the 25.1.0 release info from GitHub API (version fixed to decrease probability of breakage) - $releaseUrl = "https://api.github.com/repos/$repo/releases/25.1.0" + # Get the release info from GitHub API (version fixed to decrease probability of breakage) + $releaseUrl = "https://api.github.com/repos/$repo/releases/tags/$version" $release = Invoke-RestMethod -Uri $releaseUrl -Headers @{ "User-Agent" = "PowerShell" } # Get the download URL for the zip asset