Skip to content

Commit

Permalink
improve reliability of identifying latest Chrome version
Browse files Browse the repository at this point in the history
  • Loading branch information
rdenny-vdc committed Jan 15, 2024
1 parent 02c934c commit 5513e36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 = "https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json"
$releases = "https://versionhistory.googleapis.com/v1/chrome/platforms/win/channels/extended/versions"
$paddedUnderVersion = '57.0.2988'

function global:au_BeforeUpdate {
Expand All @@ -23,7 +23,7 @@ function global:au_SearchReplace {

function global:au_GetLatest {
$releasesData = Invoke-RestMethod -UseBasicParsing -Method Get -Uri $releases
$version = $releasesData.channels.Stable.version
$version = ($releasesData.versions | Select-Object -First 1).version

@{
URL32 = 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise.msi'
Expand Down

0 comments on commit 5513e36

Please sign in to comment.