From 5513e36fa726b985d3d5a380cf8ebece1c9a10cf Mon Sep 17 00:00:00 2001 From: Rob Denny Date: Mon, 15 Jan 2024 14:17:57 +0000 Subject: [PATCH] improve reliability of identifying latest Chrome version --- automatic/googlechrome/update.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automatic/googlechrome/update.ps1 b/automatic/googlechrome/update.ps1 index 271c5ef7e5f..df6bd9628cd 100644 --- a/automatic/googlechrome/update.ps1 +++ b/automatic/googlechrome/update.ps1 @@ -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 { @@ -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'