Files
moonlight-qt/setup-deps.ps1
T
Cameron Gutman 8cfc943737 Update SDL3, sdl2-compat, and libplacebo
SDL3 -> 3.4.20
sdl2-compat -> bebc6eb0
libplacebo -> v7.387.0

Fixes #2084
Fixes #2079
Fixes #2051
Fixes #2031
2026-11-05 18:10:16 -06:00

31 lines
1.0 KiB
PowerShell

$ErrorActionPreference = 'Stop'
$Organization = "moonlight-stream"
$PrebuiltRepo = "moonlight-qt-deps"
$TargetDir = Join-Path $PSScriptRoot "libs\windows"
$Assets = @("windows-x64.zip", "windows-ARM64.zip")
$Tag = "v20"
if (Test-Path $TargetDir) {
Write-Host "Cleaning target directory..." -ForegroundColor Cyan
Remove-Item -Path "$TargetDir\*" -Recurse -Force
} else {
New-Item -ItemType Directory -Path $TargetDir | Out-Null
}
foreach ($AssetName in $Assets) {
$Url = "https://github.com/$Organization/$PrebuiltRepo/releases/download/$Tag/$AssetName"
$ArchivePath = Join-Path $env:TEMP $AssetName
Write-Host "Downloading $AssetName..." -ForegroundColor Cyan
curl.exe -s -L -f -o "$ArchivePath" "$Url"
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
}
Write-Host "Extracting $AssetName..." -ForegroundColor Cyan
Expand-Archive -Path $ArchivePath -DestinationPath $TargetDir -Force
Remove-Item $ArchivePath
}
Write-Host "Dependencies successfully deployed" -ForegroundColor Green