Skip to content

Commit

Permalink
Merge pull request #2369 from GraphicHealer/patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiringWorm authored Dec 21, 2023
2 parents 0777164 + 433a3c2 commit f13ef2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions automatic/googlechrome/update.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import-module au
import-module "$PSScriptRoot\..\..\scripts\au_extensions.psm1"

$releases = 'http://omahaproxy.appspot.com/all?os=win&channel=stable'
$releases = "https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json"
$paddedUnderVersion = '57.0.2988'

function global:au_BeforeUpdate {
Expand All @@ -22,12 +22,12 @@ function global:au_SearchReplace {
}

function global:au_GetLatest {
$release_info = Invoke-WebRequest -Uri $releases -UseBasicParsing
$version = $release_info | ForEach-Object Content | ConvertFrom-Csv | ForEach-Object current_version

$releasesData = Invoke-RestMethod -UseBasicParsing -Method Get -Uri $releases
$version = $releasesData.channels.Stable.version
@{
URL32 = 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise.msi'
URL64 = 'https://dl.google.com/tag/s/dl/chrome/install/googlechromestandaloneenterprise64.msi'
URL32 = 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise.msi'
URL64 = 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi'
Version = Get-FixVersion $version -OnlyFixBelowVersion $paddedUnderVersion
RemoteVersion = $version
PackageName = 'GoogleChrome'
Expand Down

0 comments on commit f13ef2a

Please sign in to comment.