|
|
|
@ -310,13 +310,16 @@ DownloadLatestChromium(){
|
|
|
|
|
SaveOrPostProgress(Message:=Message,PostType:="Tooltip,ErrorLoggingTextFile,DiscordErrorLogging")
|
|
|
|
|
MsgBox 0x40,, %Message%
|
|
|
|
|
|
|
|
|
|
ChromeFilepath := ; clear out chromefilepath variable in case the path changed
|
|
|
|
|
|
|
|
|
|
ToolTip
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CheckForChromeUpdates(ChromeFilepath := ""){
|
|
|
|
|
CheckForChromeUpdates(ChromeFilepath := ""){
|
|
|
|
|
if(ChromeFilepath = "")
|
|
|
|
|
ChromeFilepath := GetInstalledChromeFilepath()
|
|
|
|
|
|
|
|
|
@ -330,10 +333,10 @@ DownloadLatestChromium(){
|
|
|
|
|
else, Return 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GetInstalledChromeFilepath(){
|
|
|
|
|
GetInstalledChromeFilepath(){
|
|
|
|
|
; ChromeFilepath is global variable
|
|
|
|
|
|
|
|
|
|
if(ChromeFilepath = ""){
|
|
|
|
@ -365,9 +368,9 @@ DownloadLatestChromium(){
|
|
|
|
|
}
|
|
|
|
|
ToolTip
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GetInstalledChromeVersion(){
|
|
|
|
|
GetInstalledChromeVersion(){
|
|
|
|
|
|
|
|
|
|
if(ChromeFilepath = ""){
|
|
|
|
|
GetInstalledChromeFilepath()
|
|
|
|
@ -380,10 +383,10 @@ DownloadLatestChromium(){
|
|
|
|
|
InstalledChromeVersion := StrReplace(InstalledChromeVersion, "`r") ; replace any newline characters that powershell returns
|
|
|
|
|
|
|
|
|
|
return InstalledChromeVersion
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GetLatestChromeStableVersion(){
|
|
|
|
|
GetLatestChromeStableVersion(){
|
|
|
|
|
|
|
|
|
|
; 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")
|
|
|
|
@ -400,10 +403,10 @@ DownloadLatestChromium(){
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return ChromeStableLatestVersion
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GetDownloadURLOfChromeAndDriver(InstalledChromeVersion){
|
|
|
|
|
GetDownloadURLOfChromeAndDriver(InstalledChromeVersion){
|
|
|
|
|
; 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
|
|
|
|
@ -450,4 +453,4 @@ DownloadLatestChromium(){
|
|
|
|
|
|
|
|
|
|
URLS = %chromeDLURL64%||%chromedriverDLURL64%
|
|
|
|
|
return URLS
|
|
|
|
|
}
|
|
|
|
|
}
|