[Windows] pin mysql release version in toolset (#4590)

This commit is contained in:
Mikhail Koliada
2021-11-26 11:52:02 +03:00
committed by GitHub
parent acc3d7cc0d
commit 8922c7b5bf
5 changed files with 15 additions and 12 deletions

View File

@@ -11,9 +11,9 @@ $ArgumentList = ("/install", "/quiet", "/norestart")
Install-Binary -Url $InstallerURI -Name $InstallerName -ArgumentList $ArgumentList
## Downloading mysql
$MysqlMajorMinor = (Get-ToolsetContent).Mysql.version
$MysqlFullVersion = ((Invoke-WebRequest -Uri https://dev.mysql.com/downloads/mysql/${MysqlMajorMinor}.html).Content | Select-String -Pattern "${MysqlMajorMinor}\.\d+").Matches.Value
$MysqlVersionUrl = "https://dev.mysql.com/get/Downloads/MySQL-${MysqlMajorMinor}/mysql-${MysqlFullVersion}-winx64.zip"
$MysqlMajorVersion = (Get-ToolsetContent).mysql.major_version
$MysqlFullVersion = (Get-ToolsetContent).mysql.full_version
$MysqlVersionUrl = "https://dev.mysql.com/get/Downloads/MySQL-${MysqlMajorVersion}/mysql-${MysqlFullVersion}-winx64.zip"
$MysqlArchPath = Start-DownloadWithRetry -Url $MysqlVersionUrl -Name "mysql.zip"