powershell update script #1073
megapro17
started this conversation in
Show and tell
Replies: 1 comment
-
Changed the script to use curl instead. $url = "https://api.github.com/repos/AnimMouse/ffmpeg-autobuild/releases/latest"
$temp = "T:\Temp"
$out = "C:\ffmpeg"
Write-Host "Downloading json from $url..."
$htmlContent = Invoke-WebRequest -Uri $url
$parsedJson = $htmlContent | ConvertFrom-Json
foreach ($asset In $parsedJson.assets) {
If ($asset.name.Contains("win64")) {
$name = $asset.name
$link = $asset.browser_download_url
break
}
}
New-Item -ItemType Directory -Path $temp -Force
New-Item -ItemType Directory -Path $out -Force
curl -o "$temp/$name" $link
& "C:\Program Files\7-Zip\7z.exe" e "$temp/$name" -x!LICENSE -o"$out" -y
Remove-Item -Force $temp/$name |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Script for updating ffmpeg. Update paths to yours
thank you for autobuild
Beta Was this translation helpful? Give feedback.
All reactions