mirror of
https://github.com/actions/runner-images.git
synced 2026-01-02 08:07:44 +08:00
Merge branch 'master' of https://github.com/nikita-bykov/virtual-environments into output-readme-step
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
################################################################################
|
||||
## File: Install-Bazel.ps1
|
||||
## Desc: Install Bazel
|
||||
## Desc: Install Bazel and Bazelisk (A user-friendly launcher for Bazel)
|
||||
################################################################################
|
||||
|
||||
choco install bazel -y
|
||||
choco install bazel -y
|
||||
|
||||
npm install -g @bazel/bazelisk
|
||||
@@ -18,7 +18,7 @@ $GoogleSvcs | Set-SvcWithErrHandling -Arguments @{StartupType = "Disabled"};
|
||||
|
||||
$regGoogleUpdatePath = "HKLM:\SOFTWARE\Policies\Google\Update";
|
||||
$regGoogleUpdateChrome = "HKLM:\SOFTWARE\Policies\Google\Chrome";
|
||||
($regGoogleUpdatePath, $regGoogleUpdateChrome) | ForEach-Object {
|
||||
($regGoogleUpdatePath, $regGoogleUpdateChrome) | ForEach-Object {
|
||||
New-Item -Path $_ -Force;
|
||||
}
|
||||
|
||||
@@ -39,4 +39,44 @@ $regGoogleParameters | ForEach-Object {
|
||||
New-ItemProperty @Arguments;
|
||||
}
|
||||
|
||||
# Reinstall Chrome Web Driver
|
||||
Write-Host "Install Chrome WebDriver"
|
||||
$DestinationPath = "$($env:SystemDrive)\";
|
||||
$ChromeDriverPath = "${DestinationPath}SeleniumWebDrivers\ChromeDriver";
|
||||
|
||||
if (-not (Test-Path -Path $ChromeDriverPath)) {
|
||||
New-Item -Path $ChromeDriverPath -ItemType "directory"
|
||||
}
|
||||
|
||||
$RegistryPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths"
|
||||
$ChromePath = (Get-ItemProperty "$RegistryPath\chrome.exe").'(default)';
|
||||
[version]$ChromeVersion = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($ChromePath).ProductVersion;
|
||||
Write-Host "Chrome version: [$ChromeVersion]";
|
||||
|
||||
$ChromeDriverVersionUri = "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$($ChromeVersion.Major).$($ChromeVersion.Minor).$($ChromeVersion.Build)";
|
||||
Write-Host "Chrome driver version Uri [$ChromeDriverVersionUri]";
|
||||
Write-Host "Getting the Chrome driver version...";
|
||||
$ChromeDriverVersion = Invoke-WebRequest -Uri $ChromeDriverVersionUri;
|
||||
Write-Host "Current Chrome driver version: [$ChromeDriverVersion]";
|
||||
|
||||
$ChromeDriverZipDownloadUri = "https://chromedriver.storage.googleapis.com/$($ChromeDriverVersion.ToString())/chromedriver_win32.zip";
|
||||
Write-Host "Chrome driver zip file download Uri: [$ChromeDriverZipDownloadUri]";
|
||||
|
||||
$DestFile= "$ChromeDriverPath\chromedriver_win32.zip";
|
||||
$ChromeDriverVersion.Content | Out-File -FilePath "$ChromeDriverPath\versioninfo.txt" -Force;
|
||||
|
||||
Write-Host "Chrome driver download....";
|
||||
Invoke-WebRequest -Uri $ChromeDriverZipDownloadUri -OutFile $DestFile;
|
||||
|
||||
Write-Host "Chrome driver install....";
|
||||
Expand-Archive -Path "$ChromeDriverPath\chromedriver_win32.zip" -DestinationPath $ChromeDriverPath -Force;
|
||||
Remove-Item -Path "$ChromeDriverPath\chromedriver_win32.zip" -Force;
|
||||
|
||||
Write-Host "Setting the environment variables"
|
||||
|
||||
setx ChromeWebDriver "$ChromeDriverPath" /M;
|
||||
|
||||
$regEnvKey = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\';
|
||||
$PathValue = Get-ItemPropertyValue -Path $regEnvKey -Name 'Path';
|
||||
$PathValue += ";$ChromeDriverPath\";
|
||||
Set-ItemProperty -Path $regEnvKey -Name 'Path' -Value $PathValue;
|
||||
|
||||
@@ -4,3 +4,38 @@
|
||||
################################################################################
|
||||
|
||||
choco install microsoft-edge -y
|
||||
|
||||
# Install Microsoft Edge Web Driver
|
||||
Write-Host "Install Edge WebDriver"
|
||||
$DestinationPath = "$($env:SystemDrive)\";
|
||||
|
||||
$EdgeDriverPath = "${DestinationPath}SeleniumWebDrivers\EdgeDriver"
|
||||
if (-not (Test-Path -Path $EdgeDriverPath)) {
|
||||
New-Item -Path $EdgeDriverPath -ItemType "directory"
|
||||
}
|
||||
|
||||
$RegistryPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths"
|
||||
$EdgePath = (Get-ItemProperty "$RegistryPath\msedge.exe").'(default)'
|
||||
[version]$EdgeVersion = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($EdgePath).ProductVersion
|
||||
$EdgeDriverVersionUrl = "https://msedgedriver.azureedge.net/LATEST_RELEASE_$($EdgeVersion.Major)"
|
||||
$EdgeDriverVersionFile = "$EdgeDriverPath\versioninfo.txt"
|
||||
Invoke-WebRequest -Uri $EdgeDriverVersionUrl -OutFile $EdgeDriverVersionFile
|
||||
|
||||
Write-Host "Microsoft Edge driver download started"
|
||||
$EdgeDriverLatestVersion = Get-Content -Path $EdgeDriverVersionFile
|
||||
$EdgeDriverDownloadUrl="https://msedgedriver.azureedge.net/${EdgeDriverLatestVersion}/edgedriver_win64.zip"
|
||||
$DestFile = "$EdgeDriverPath\edgedriver_win64.zip"
|
||||
Invoke-WebRequest -Uri $EdgeDriverDownloadUrl -OutFile $DestFile
|
||||
|
||||
Write-Host "Microsoft Edge driver installation started"
|
||||
Expand-Archive -Path $DestFile -DestinationPath $EdgeDriverPath -Force
|
||||
Remove-Item -Path $DestFile -Force
|
||||
|
||||
Write-Host "Setting the environment variables"
|
||||
|
||||
setx EdgeWebDriver "$EdgeDriverPath" /M;
|
||||
|
||||
$regEnvKey = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\';
|
||||
$PathValue = Get-ItemPropertyValue -Path $regEnvKey -Name 'Path';
|
||||
$PathValue += ";$EdgeDriverPath\";
|
||||
Set-ItemProperty -Path $regEnvKey -Name 'Path' -Value $PathValue;
|
||||
|
||||
@@ -26,18 +26,27 @@ $firefoxPreferencesFolder = Join-Path $firefoxDirectoryPath "defaults\pref"
|
||||
New-Item -path $firefoxPreferencesFolder -Name 'local-settings.js' -Value 'pref("general.config.obscure_value", 0);
|
||||
pref("general.config.filename", "mozilla.cfg");' -ItemType file -force
|
||||
|
||||
# Install Firefox gecko Web Driver
|
||||
Write-Host "Install Firefox WebDriver"
|
||||
$DestinationPath = "$($env:SystemDrive)\";
|
||||
$SeleniumWebDriverPath = Join-Path $DestinationPath "SeleniumWebDrivers"
|
||||
|
||||
$geckodriverJson = Invoke-RestMethod "https://api.github.com/repos/mozilla/geckodriver/releases/latest"
|
||||
$geckodriverWindowsAsset = $geckodriverJson.assets | Where-Object { $_.name -Match "win64" } | Select-Object -First 1
|
||||
|
||||
Write-Host "Geckodriver version: $($geckodriverJson.tag_name)"
|
||||
|
||||
$geckodriverVersion = $geckodriverJson.tag_name
|
||||
Write-Host "Geckodriver version: $geckodriverVersion"
|
||||
|
||||
$DriversZipFile = $geckodriverWindowsAsset.name
|
||||
Write-Host "Selenium drivers download and install..."
|
||||
|
||||
$FirefoxDriverPath = Join-Path $env:SystemDrive "SeleniumWebDrivers\GeckoDriver"
|
||||
$FirefoxDriverPath = Join-Path $SeleniumWebDriverPath "GeckoDriver"
|
||||
|
||||
if (-not (Test-Path -Path $FirefoxDriverPath)) {
|
||||
New-Item -Path $FirefoxDriverPath -ItemType "directory"
|
||||
}
|
||||
|
||||
$geckodriverVersion.Substring(1) | Out-File -FilePath "$FirefoxDriverPath\versioninfo.txt" -Force;
|
||||
|
||||
# Install Firefox Web Driver
|
||||
Write-Host "FireFox driver download...."
|
||||
@@ -63,4 +72,4 @@ Write-Host "Setting the environment variables"
|
||||
Add-MachinePathItem -PathItem $FireFoxDriverPath
|
||||
setx GeckoWebDriver "$FirefoxDriverPath" /M;
|
||||
|
||||
exit 0
|
||||
exit 0
|
||||
|
||||
32
images/win/scripts/Installers/Install-IEWebDriver.ps1
Normal file
32
images/win/scripts/Installers/Install-IEWebDriver.ps1
Normal file
@@ -0,0 +1,32 @@
|
||||
################################################################################
|
||||
## File: Install-SeleniumWebDrivers.ps1
|
||||
## Desc: Install Selenium Web Drivers
|
||||
################################################################################
|
||||
$DestinationPath = "$($env:SystemDrive)\";
|
||||
$DriversZipFile = "SeleniumWebDrivers.zip"
|
||||
Write-Host "Destination path: [$DestinationPath]";
|
||||
Write-Host "Selenium drivers download and install...";
|
||||
try {
|
||||
Invoke-WebRequest -UseBasicParsing -Uri "https://seleniumwebdrivers.blob.core.windows.net/seleniumwebdrivers/${DriversZipFile}" -OutFile $DriversZipFile;
|
||||
}
|
||||
catch {
|
||||
Write-Error "[!] Failed to download $DriversZipFile";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
$TempSeleniumDir = Join-Path $Env:TEMP "SeleniumWebDrivers"
|
||||
Expand-Archive -Path $DriversZipFile -DestinationPath $Env:TEMP -Force;
|
||||
Remove-Item $DriversZipFile;
|
||||
|
||||
$SeleniumWebDriverPath = Join-Path $DestinationPath "SeleniumWebDrivers"
|
||||
$IEDriverPathTemp = Join-Path $TempSeleniumDir 'IEDriver'
|
||||
|
||||
if (-not (Test-Path -Path $SeleniumWebDriverPath)) {
|
||||
New-Item -Path $SeleniumWebDriverPath -ItemType "directory"
|
||||
}
|
||||
|
||||
Move-Item -Path "$IEDriverPathTemp" -Destination $SeleniumWebDriverPath
|
||||
|
||||
Write-Host "Setting the environment variables"
|
||||
|
||||
setx IEWebDriver "C:\SeleniumWebDrivers\IEDriver" /M;
|
||||
6
images/win/scripts/Installers/Install-Packer.ps1
Normal file
6
images/win/scripts/Installers/Install-Packer.ps1
Normal file
@@ -0,0 +1,6 @@
|
||||
################################################################################
|
||||
## File: Install-Packer.ps1
|
||||
## Desc: Install Packer
|
||||
################################################################################
|
||||
|
||||
choco install packer -y
|
||||
@@ -1,96 +0,0 @@
|
||||
################################################################################
|
||||
## File: Install-SeleniumWebDrivers.ps1
|
||||
## Desc: Install Selenium Web Drivers
|
||||
################################################################################
|
||||
$DestinationPath = "$($env:SystemDrive)\";
|
||||
$DriversZipFile = "SeleniumWebDrivers.zip"
|
||||
Write-Host "Destination path: [$DestinationPath]";
|
||||
Write-Host "Selenium drivers download and install...";
|
||||
try {
|
||||
Invoke-WebRequest -UseBasicParsing -Uri "https://seleniumwebdrivers.blob.core.windows.net/seleniumwebdrivers/${DriversZipFile}" -OutFile $DriversZipFile;
|
||||
}
|
||||
catch {
|
||||
Write-Error "[!] Failed to download $DriversZipFile";
|
||||
exit 1;
|
||||
}
|
||||
|
||||
$TempSeleniumDir = Join-Path $Env:TEMP "SeleniumWebDrivers"
|
||||
Expand-Archive -Path $DriversZipFile -DestinationPath $Env:TEMP -Force;
|
||||
Remove-Item $DriversZipFile;
|
||||
|
||||
$SeleniumWebDriverPath = Join-Path $DestinationPath "SeleniumWebDrivers"
|
||||
$IEDriverPathTemp = Join-Path $TempSeleniumDir 'IEDriver'
|
||||
|
||||
if (-not (Test-Path -Path $SeleniumWebDriverPath)) {
|
||||
New-Item -Path $SeleniumWebDriverPath -ItemType "directory"
|
||||
}
|
||||
|
||||
Move-Item -Path "$IEDriverPathTemp" -Destination $SeleniumWebDriverPath
|
||||
|
||||
|
||||
# Reinstall Chrome Web Driver
|
||||
$ChromeDriverPath = "${DestinationPath}SeleniumWebDrivers\ChromeDriver";
|
||||
|
||||
if (-not (Test-Path -Path $ChromeDriverPath)) {
|
||||
New-Item -Path $ChromeDriverPath -ItemType "directory"
|
||||
}
|
||||
|
||||
$RegistryPath = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths"
|
||||
$ChromePath = (Get-ItemProperty "$RegistryPath\chrome.exe").'(default)';
|
||||
[version]$ChromeVersion = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($ChromePath).ProductVersion;
|
||||
Write-Host "Chrome version: [$ChromeVersion]";
|
||||
|
||||
$ChromeDriverVersionUri = "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$($ChromeVersion.Major).$($ChromeVersion.Minor).$($ChromeVersion.Build)";
|
||||
Write-Host "Chrome driver version Uri [$ChromeDriverVersionUri]";
|
||||
Write-Host "Getting the Chrome driver version...";
|
||||
$ChromeDriverVersion = Invoke-WebRequest -Uri $ChromeDriverVersionUri;
|
||||
Write-Host "Current Chrome driver version: [$ChromeDriverVersion]";
|
||||
|
||||
$ChromeDriverZipDownloadUri = "https://chromedriver.storage.googleapis.com/$($ChromeDriverVersion.ToString())/chromedriver_win32.zip";
|
||||
Write-Host "Chrome driver zip file download Uri: [$ChromeDriverZipDownloadUri]";
|
||||
|
||||
$DestFile= "$ChromeDriverPath\chromedriver_win32.zip";
|
||||
$ChromeDriverVersion.Content | Out-File -FilePath "$ChromeDriverPath\versioninfo.txt" -Force;
|
||||
|
||||
Write-Host "Chrome driver download....";
|
||||
Invoke-WebRequest -Uri $ChromeDriverZipDownloadUri -OutFile $DestFile;
|
||||
|
||||
Write-Host "Chrome driver install....";
|
||||
Expand-Archive -Path "$ChromeDriverPath\chromedriver_win32.zip" -DestinationPath $ChromeDriverPath -Force;
|
||||
Remove-Item -Path "$ChromeDriverPath\chromedriver_win32.zip" -Force;
|
||||
|
||||
# Install Microsoft Edge Web Driver
|
||||
Write-Host "Microsoft Edge driver download...."
|
||||
$EdgeDriverPath = "${DestinationPath}SeleniumWebDrivers\EdgeDriver"
|
||||
if (-not (Test-Path -Path $EdgeDriverPath)) {
|
||||
New-Item -Path $EdgeDriverPath -ItemType "directory"
|
||||
}
|
||||
|
||||
$EdgePath = (Get-ItemProperty "$RegistryPath\msedge.exe").'(default)'
|
||||
[version]$EdgeVersion = [System.Diagnostics.FileVersionInfo]::GetVersionInfo($EdgePath).ProductVersion
|
||||
$EdgeDriverVersionUrl = "https://msedgedriver.azureedge.net/LATEST_RELEASE_$($EdgeVersion.Major)"
|
||||
$EdgeDriverVersionFile = "$EdgeDriverPath\versioninfo.txt"
|
||||
Invoke-WebRequest -Uri $EdgeDriverVersionUrl -OutFile $EdgeDriverVersionFile
|
||||
|
||||
$EdgeDriverLatestVersion = Get-Content -Path $EdgeDriverVersionFile
|
||||
$EdgeDriverDownloadUrl="https://msedgedriver.azureedge.net/${EdgeDriverLatestVersion}/edgedriver_win64.zip"
|
||||
$DestFile = "$EdgeDriverPath\edgedriver_win64.zip"
|
||||
Invoke-WebRequest -Uri $EdgeDriverDownloadUrl -OutFile $DestFile
|
||||
|
||||
Write-Host "Microsoft Edge driver install...."
|
||||
Expand-Archive -Path $DestFile -DestinationPath $EdgeDriverPath -Force
|
||||
Remove-Item -Path $DestFile -Force
|
||||
|
||||
Write-Host "Setting the environment variables"
|
||||
|
||||
setx IEWebDriver "C:\SeleniumWebDrivers\IEDriver" /M;
|
||||
setx ChromeWebDriver "$ChromeDriverPath" /M;
|
||||
setx EdgeWebDriver "$EdgeDriverPath" /M;
|
||||
|
||||
$regEnvKey = 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\';
|
||||
$PathValue = Get-ItemPropertyValue -Path $regEnvKey -Name 'Path';
|
||||
$PathValue += ";$ChromeDriverPath\";
|
||||
$PathValue += ";$EdgeDriverPath\";
|
||||
Set-ItemProperty -Path $regEnvKey -Name 'Path' -Value $PathValue;
|
||||
|
||||
exit 0;
|
||||
@@ -68,6 +68,7 @@ Push-Location -Path $sdk.FullName
|
||||
"platforms;android-22" `
|
||||
"platforms;android-21" `
|
||||
"platforms;android-19" `
|
||||
"build-tools;29.0.3" `
|
||||
"build-tools;29.0.2" `
|
||||
"build-tools;29.0.0" `
|
||||
"build-tools;28.0.3" `
|
||||
|
||||
35
images/win/scripts/Installers/Update-ImageData.ps1
Normal file
35
images/win/scripts/Installers/Update-ImageData.ps1
Normal file
@@ -0,0 +1,35 @@
|
||||
$os = Get-CimInstance -ClassName Win32_OperatingSystem
|
||||
$caption = $os.Caption
|
||||
$osName = $caption.Substring(0, $caption.LastIndexOf(" "))
|
||||
$osEdition = $caption.Substring($caption.LastIndexOf(" ")+1)
|
||||
$osVersion = $os.Version
|
||||
$imageVersion = $env:IMAGE_VERSION
|
||||
$imageDataFile = $env:IMAGEDATA_FILE
|
||||
$githubUrl="https://github.com/actions/virtual-environments/blob"
|
||||
|
||||
if ($caption -match "2019")
|
||||
{
|
||||
$imageLabel = "windows-2019"
|
||||
$softwareUrl = "${githubUrl}/win19/${imageVersion}/images/win/Windows2019-Readme.md"
|
||||
}
|
||||
|
||||
if ($caption -match "2016")
|
||||
{
|
||||
$imageLabel = "windows-2016"
|
||||
$softwareUrl = "${githubUrl}/win16/${imageVersion}/images/win/Windows2016-Readme.md"
|
||||
}
|
||||
|
||||
$json = @"
|
||||
[
|
||||
{
|
||||
"group": "Operating System",
|
||||
"detail": "${osName}\n${osVersion}\n${osEdition}"
|
||||
},
|
||||
{
|
||||
"group": "Virtual Environment",
|
||||
"detail": "Environment: ${imageLabel}\nVersion: ${imageVersion}\nIncluded Software: ${softwareUrl}"
|
||||
}
|
||||
]
|
||||
"@
|
||||
|
||||
$json | Out-File -FilePath $imageDataFile
|
||||
@@ -1,6 +1,6 @@
|
||||
################################################################################
|
||||
## File: Validate-Bazel.ps1
|
||||
## Desc: Validate Bazel
|
||||
## Desc: Validate Bazel and Bazelisk (A user-friendly launcher for Bazel)
|
||||
################################################################################
|
||||
|
||||
if (Get-Command -Name 'bazel')
|
||||
@@ -13,7 +13,17 @@ else
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
if (Get-Command -Name 'bazelisk')
|
||||
{
|
||||
Write-Host "bazelisk on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'bazelisk is not on path'
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of Bazel to Markdown
|
||||
$SoftwareName = "bazel"
|
||||
|
||||
$Description = @"
|
||||
@@ -21,4 +31,15 @@ _Version:_ $(bazel --version)<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName "Test Software" -DescriptionMarkdown "Test Software"
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName "Test Software" -DescriptionMarkdown "Test Software"
|
||||
|
||||
# Adding description of Bazelisk to Markdown
|
||||
$bazelisk_version = ((bazelisk version | Select-String "Bazelisk version:") -Split(" v"))[2]
|
||||
|
||||
$SoftwareName = "bazelisk"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $bazelisk_version<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
@@ -15,7 +15,7 @@ else
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Mercurial"
|
||||
$(hg --version).Split([System.Environment]::NewLine)[0] -match "\d+\.\d+\.\d+"
|
||||
$(hg --version).Split([System.Environment]::NewLine)[0] -match "\d+\.\d+"
|
||||
$MercurialVersion = $matches[0]
|
||||
|
||||
$Description = @"
|
||||
|
||||
24
images/win/scripts/Installers/Validate-Packer.ps1
Normal file
24
images/win/scripts/Installers/Validate-Packer.ps1
Normal file
@@ -0,0 +1,24 @@
|
||||
################################################################################
|
||||
## File: Validate-Packer.ps1
|
||||
## Desc: Validate Packer
|
||||
################################################################################
|
||||
|
||||
if (Get-Command -Name 'packer')
|
||||
{
|
||||
Write-Host "Packer is on path"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host 'Packer is not on path'
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Packer"
|
||||
$PackerVersion = packer --version
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $PackerVersion<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
@@ -36,9 +36,9 @@ if (
|
||||
(Get-Item "$EdgeDriverPath\msedgedriver.exe").VersionInfo
|
||||
|
||||
$versionFileName = "versioninfo.txt";
|
||||
$chromedriverversion = Get-Content -Path "$IEDriverPath\$versionFileName"
|
||||
$chromedriverversion = Get-Content -Path "$ChromeDriverPath\$versionFileName"
|
||||
$geckodriverversion = Get-Content -Path "$GeckoDriverPath\$versionFileName"
|
||||
$iedriverversion = Get-Content -Path "$ChromeDriverPath\$versionFileName"
|
||||
$iedriverversion = Get-Content -Path "$IEDriverPath\$versionFileName"
|
||||
$edgedriverversion = Get-Content -Path "$EdgeDriverPath\$versionFileName"
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
|
||||
@@ -15,7 +15,7 @@ else
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "VSWhere"
|
||||
$VswhereVersion = $(vswhere)
|
||||
$VswhereVersion = (Get-Command -Name vswhere).FileVersionInfo.ProductVersion
|
||||
|
||||
$Description = @"
|
||||
_Version_: $VswhereVersion<br/>
|
||||
|
||||
@@ -15,7 +15,7 @@ else
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "zstd"
|
||||
$zstdVersion = $(zstd --version).Split(' ')[6].Split(',')[0]
|
||||
$zstdVersion = $(zstd --version).Split(' ')[6].Split(',')[0].Substring(1)
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $zstdVersion<br/>
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
Import-Module -Name ImageHelpers -Force
|
||||
|
||||
#SSDT for Visual Studio 2017 (15.8.2)
|
||||
$InstallerURI = 'https://download.microsoft.com/download/D/F/8/DF8B51B9-8E9F-47F3-A27B-33EEDADD8966/SSDT-Setup-ENU.exe'
|
||||
#SSDT for Visual Studio 2017 (15.9.3)
|
||||
$InstallerURI = 'https://download.microsoft.com/download/5/2/D/52DEF429-5B17-470C-82D9-654116080B15/SSDT-Setup-ENU.exe'
|
||||
$InstallerName = 'SSDT-Setup-ENU.exe'
|
||||
$logFilePath = "$env:TEMP\ssdtlog.txt"
|
||||
$ArgumentList = ('/install', 'INSTALLALL', '/passive', '/norestart', "/log `"$logFilePath`"")
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
###################################################################################
|
||||
## File: Install-AnalysisExtenstion.ps1
|
||||
## Desc: Install the Microsoft Analysis Services Projects Visual Studio extension
|
||||
###################################################################################
|
||||
|
||||
|
||||
$extensionUrl = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/ProBITools/vsextensions/MicrosoftAnalysisServicesModelingProjects/2.9.5/vspackage"
|
||||
$extensionDownloadPath = Join-Path $Env:TEMP "Microsoft.DataTools.AnalysisServices.vsix"
|
||||
Write-Host "Downloading Microsoft.DataTools.AnalysisServices.vsix extension"
|
||||
(New-Object System.Net.WebClient).DownloadFile($extensionUrl, $extensionDownloadPath)
|
||||
|
||||
Write-Host "Installing Microsoft.DataTools.AnalysisServices.vsix extension"
|
||||
try
|
||||
{
|
||||
$process = Start-Process `
|
||||
-FilePath "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\VSIXInstaller.exe" `
|
||||
-ArgumentList ("/quiet", "$extensionDownloadPath") `
|
||||
-Wait `
|
||||
-PassThru
|
||||
}
|
||||
catch
|
||||
{
|
||||
Write-Host "There is an error during Microsoft.DataTools.AnalysisServices.vsix installation"
|
||||
$_
|
||||
exit 1
|
||||
}
|
||||
|
||||
|
||||
$exitCode = $process.ExitCode
|
||||
|
||||
if ($exitCode -eq 0 -or $exitCode -eq 1001) # 1001 means the extension is already installed
|
||||
{
|
||||
Write-Host "Microsoft.DataTools.AnalysisServices.vsix installed successfully"
|
||||
}
|
||||
else
|
||||
{
|
||||
Write-Host "Unsuccessful exit code returned by the installation process: $exitCode."
|
||||
exit 1
|
||||
}
|
||||
|
||||
#Cleanup installation files
|
||||
Remove-Item -Force -Confirm:$false $extensionDownloadPath
|
||||
|
||||
exit $exitCode
|
||||
@@ -112,6 +112,15 @@ $WorkLoads = '--allWorkloads --includeRecommended ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.TestAdapterForGoogleTest ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141 ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141.x86.x64 ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141.x86.x64.Spectre ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141.ARM.Spectre ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141.ARM64.Spectre ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141.ATL.ARM.Spectre ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141.ATL.ARM64.Spectre ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141.ATL.Spectre ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141.MFC.ARM.Spectre ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141.MFC.ARM64.Spectre ' + `
|
||||
'--add Microsoft.VisualStudio.Component.VC.v141.MFC.Spectre ' + `
|
||||
'--add Microsoft.VisualStudio.Component.Windows10SDK.16299 ' + `
|
||||
'--add Microsoft.VisualStudio.Component.Windows10SDK.17134 ' + `
|
||||
'--add Microsoft.VisualStudio.Component.Windows10SDK.17763 ' + `
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
################################################################################
|
||||
## File: Validate-AnalysisExtenstion.ps1
|
||||
## Desc: Validate Microsoft Analysis Services Projects Visual Studio extension
|
||||
################################################################################
|
||||
|
||||
Import-Module -Name ImageHelpers -Force
|
||||
|
||||
#AnalysisPackage doesn't have any proper name in the state.packages.json file, only id is available
|
||||
$AnalysisPackageVersion = Get-VS19ExtensionVersion -packageName "04a86fc2-dbd5-4222-848e-911638e487fe"
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Microsoft Analysis Services Projects Visual Studio Extension"
|
||||
|
||||
$Description = @"
|
||||
_Version:_ $AnalysisPackageVersion<br/>
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
Reference in New Issue
Block a user