Skip to content

Commit

Permalink
(graphviz) update++
Browse files Browse the repository at this point in the history
  • Loading branch information
majkinetor committed Sep 19, 2021
1 parent 07f70b2 commit a52d3fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions automatic/graphviz/update.ps1
Expand Up @@ -19,13 +19,14 @@ function global:au_SearchReplace {

function global:au_GetLatest {
$download_page = Invoke-WebRequest -UseBasicParsing -Uri $releases
$re = "stable_windows_10_cmake_Release.+\.exe"

$re = "stable_windows_10_cmake_Release.+-win64\.exe"
$link = $download_page.links | ? outerHtml -match $re | select -first 1
$link.outerHtml -match '>(.+)</a>' | Out-Null
$fileName = $Matches[1]

@{
Version = $link.outerHTML -split '-' | select -Last 1 -Skip 1
Version = $filename -split '-| ' | select -First 1 -Skip 1
URL64 = $link.href
FileName = $fileName
FileType = 'exe'
Expand Down

0 comments on commit a52d3fe

Please sign in to comment.