From cbcd8d5f6b44c8e5a832fb24b5282802e0933764 Mon Sep 17 00:00:00 2001 From: Alvin-Zilverstand Date: Thu, 12 Nov 2026 16:53:27 +0100 Subject: [PATCH] Update scripts/prepare-ffmpeg-sidecar.ps1 --- scripts/prepare-ffmpeg-sidecar.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"