diff --git a/automatic/paraview/update.ps1 b/automatic/paraview/update.ps1 index 6e1398074..fa6723456 100644 --- a/automatic/paraview/update.ps1 +++ b/automatic/paraview/update.ps1 @@ -28,7 +28,7 @@ function global:au_GetLatest { $folder = ((Invoke-WebRequest -Uri $releases -UseBasicParsing).Links | Where-Object {$_ -match 'v[0-9].'} | Select-Object -Last 1).href $file = (((Invoke-WebRequest -Uri "$releases$folder" -UseBasicParsing).Links | Where-Object {$_ -match ".msi"} | Select-Object -Last 1).href).replace('.0&','&') $url = "https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=$folder&type=binary&os=Windows&downloadFile=$file" - $version=$folder.replace('v','').replace('/','') + $version=$file.Split('-') | Where-Object {$_ -match '^[0-9]\.[0-9]'} $Latest = @{ URL32 = $url; Version = $version } return $Latest