Skip to content

Commit

Permalink
(zettlr) Fixed update script
Browse files Browse the repository at this point in the history
  • Loading branch information
mkevenaar committed Dec 20, 2019
1 parent ed147eb commit e921765
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions automatic/zettlr/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

#Zettlr-win32-x64-1.2.3.exe
$re = "Zettlr-win32-x64-(.+).exe"
$re = "Zettlr-(.+).exe"
$url = $download_page.links | ? href -match $re | select -First 1 -expand href

$version = ([regex]::Match($url,$re)).Captures.Groups[1].value
$url = 'https://github.com' + $url

return @{
return @{
URL32 = $url
Version = $version
Version = $version
FileType = 'exe'
}
}
Expand All @@ -37,4 +37,4 @@ function global:au_SearchReplace {

if ($MyInvocation.InvocationName -ne '.') {
update -ChecksumFor None
}
}

0 comments on commit e921765

Please sign in to comment.