|
|
@ -310,13 +310,16 @@ DownloadLatestChromium(){
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
MsgBox 0x40,, %Message%
|
|
|
|
MsgBox 0x40,, %Message%
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ChromeFilepath := ; clear out chromefilepath variable in case the path changed
|
|
|
|
|
|
|
|
|
|
|
|
ToolTip
|
|
|
|
ToolTip
|
|
|
|
return
|
|
|
|
return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CheckForChromeUpdates(ChromeFilepath := ""){
|
|
|
|
CheckForChromeUpdates(ChromeFilepath := ""){
|
|
|
|
|
|
|
|
if(ChromeFilepath = "")
|
|
|
|
if(ChromeFilepath = "")
|
|
|
|
ChromeFilepath := GetInstalledChromeFilepath()
|
|
|
|
ChromeFilepath := GetInstalledChromeFilepath()
|
|
|
|
|
|
|
|
|
|
|
@ -330,10 +333,10 @@ DownloadLatestChromium(){
|
|
|
|
else, Return 0
|
|
|
|
else, Return 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GetInstalledChromeFilepath(){
|
|
|
|
GetInstalledChromeFilepath(){
|
|
|
|
; ChromeFilepath is global variable
|
|
|
|
; ChromeFilepath is global variable
|
|
|
|
|
|
|
|
|
|
|
|
if(ChromeFilepath = ""){
|
|
|
|
if(ChromeFilepath = ""){
|
|
|
@ -365,9 +368,9 @@ DownloadLatestChromium(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ToolTip
|
|
|
|
ToolTip
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
GetInstalledChromeVersion(){
|
|
|
|
GetInstalledChromeVersion(){
|
|
|
|
|
|
|
|
|
|
|
|
if(ChromeFilepath = ""){
|
|
|
|
if(ChromeFilepath = ""){
|
|
|
|
GetInstalledChromeFilepath()
|
|
|
|
GetInstalledChromeFilepath()
|
|
|
@ -380,10 +383,10 @@ DownloadLatestChromium(){
|
|
|
|
InstalledChromeVersion := StrReplace(InstalledChromeVersion, "`r") ; replace any newline characters that powershell returns
|
|
|
|
InstalledChromeVersion := StrReplace(InstalledChromeVersion, "`r") ; replace any newline characters that powershell returns
|
|
|
|
|
|
|
|
|
|
|
|
return InstalledChromeVersion
|
|
|
|
return InstalledChromeVersion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GetLatestChromeStableVersion(){
|
|
|
|
GetLatestChromeStableVersion(){
|
|
|
|
|
|
|
|
|
|
|
|
; https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints
|
|
|
|
; https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints
|
|
|
|
json_str := urldownloadtovar("https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json")
|
|
|
|
json_str := urldownloadtovar("https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions.json")
|
|
|
@ -400,10 +403,10 @@ DownloadLatestChromium(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return ChromeStableLatestVersion
|
|
|
|
return ChromeStableLatestVersion
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GetDownloadURLOfChromeAndDriver(InstalledChromeVersion){
|
|
|
|
GetDownloadURLOfChromeAndDriver(InstalledChromeVersion){
|
|
|
|
; Will return the download URL of Chrome for Testing and Chrome Driver, seperated by a ||
|
|
|
|
; Will return the download URL of Chrome for Testing and Chrome Driver, seperated by a ||
|
|
|
|
|
|
|
|
|
|
|
|
; https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints
|
|
|
|
; https://github.com/GoogleChromeLabs/chrome-for-testing#json-api-endpoints
|
|
|
@ -450,4 +453,4 @@ DownloadLatestChromium(){
|
|
|
|
|
|
|
|
|
|
|
|
URLS = %chromeDLURL64%||%chromedriverDLURL64%
|
|
|
|
URLS = %chromeDLURL64%||%chromedriverDLURL64%
|
|
|
|
return URLS
|
|
|
|
return URLS
|
|
|
|
}
|
|
|
|
}
|