Update scripts/prepare-ffmpeg-sidecar.ps1
This commit is contained in:
1 parent
24f962be7f
commit
cbcd8d5f6b
1 file changed
+2
-1
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user