commit
094f597918
|
@ -246,7 +246,7 @@ function Start-WAUUpdateCheck{
|
||||||
else{
|
else{
|
||||||
#Get Github latest version
|
#Get Github latest version
|
||||||
$WAUurl = 'https://api.github.com/repos/Romanitho/Winget-AutoUpdate/releases/latest'
|
$WAUurl = 'https://api.github.com/repos/Romanitho/Winget-AutoUpdate/releases/latest'
|
||||||
$LatestVersion = (Invoke-WebRequest $WAUurl | ConvertFrom-Json)[0].tag_name
|
$LatestVersion = (Invoke-WebRequest $WAUurl -UseBasicParsing | ConvertFrom-Json)[0].tag_name
|
||||||
[version]$AvailableVersion = $LatestVersion.Replace("v","")
|
[version]$AvailableVersion = $LatestVersion.Replace("v","")
|
||||||
|
|
||||||
#If newer version is avalable, return $True
|
#If newer version is avalable, return $True
|
||||||
|
@ -264,7 +264,7 @@ function Start-WAUUpdateCheck{
|
||||||
function Update-WAU{
|
function Update-WAU{
|
||||||
#Get WAU Github latest version
|
#Get WAU Github latest version
|
||||||
$WAUurl = 'https://api.github.com/repos/Romanitho/Winget-AutoUpdate/releases/latest'
|
$WAUurl = 'https://api.github.com/repos/Romanitho/Winget-AutoUpdate/releases/latest'
|
||||||
$LatestVersion = (Invoke-WebRequest $WAUurl | ConvertFrom-Json)[0].tag_name
|
$LatestVersion = (Invoke-WebRequest $WAUurl -UseBasicParsing | ConvertFrom-Json)[0].tag_name
|
||||||
|
|
||||||
#Send available update notification
|
#Send available update notification
|
||||||
$Title = $NotifLocale.local.outputs.output[2].title -f "Winget-AutoUpdate"
|
$Title = $NotifLocale.local.outputs.output[2].title -f "Winget-AutoUpdate"
|
||||||
|
|
Loading…
Reference in New Issue