diff --git a/scripts/prepare-ffmpeg-sidecar.ps1 b/scripts/prepare-ffmpeg-sidecar.ps1 index 7b6657b..40a29ca 100644 --- a/scripts/prepare-ffmpeg-sidecar.ps1 +++ b/scripts/prepare-ffmpeg-sidecar.ps1 @@ -27,7 +27,8 @@ New-Item -ItemType Directory -Force $tempRoot | Out-Null try { Write-Host "Downloading FFmpeg essentials build..." Invoke-WebRequest -UseBasicParsing -Uri $DownloadUrl -OutFile $zipPath - Expand-Archive -LiteralPath $zipPath -DestinationPath $tempRoot -Force + Add-Type -AssemblyName System.IO.Compression.FileSystem + [System.IO.Compression.ZipFile]::ExtractToDirectory($zipPath, $tempRoot) $ffmpeg = Get-ChildItem -Path $tempRoot -Recurse -Filter ffmpeg.exe | Select-Object -First 1 if (-not $ffmpeg) { throw "Downloaded archive did not contain ffmpeg.exe"