[Windows] Remove unused code (#13606)
This commit is contained in:
@@ -1,27 +0,0 @@
|
||||
################################################################################
|
||||
## File: Install-BizTalkBuildComponent.ps1
|
||||
## Desc: Install BizTalk Project Build Component
|
||||
################################################################################
|
||||
|
||||
$downloadUrl = "https://aka.ms/BuildComponentSetup.EN"
|
||||
|
||||
Write-Host "Downloading BizTalk Project Build Component archive..."
|
||||
$zipFile = Invoke-DownloadWithRetry $downloadUrl
|
||||
|
||||
$setupPath = Join-Path $env:TEMP_DIR "BizTalkBuildComponent"
|
||||
if (-not (Test-Path -Path $setupPath)) {
|
||||
New-Item -Path $setupPath -ItemType Directory -Force | Out-Null
|
||||
}
|
||||
Expand-7ZipArchive -Path $zipFile -DestinationPath $setupPath
|
||||
|
||||
Write-Host "Installing BizTalk Project Build Component..."
|
||||
Install-Binary `
|
||||
-LocalPath "$setupPath\Bootstrap.msi" `
|
||||
-ExtraInstallArgs ("/l*v", "$setupPath\bootstrap.log") `
|
||||
-ExpectedSubject $(Get-MicrosoftPublisher)
|
||||
Install-Binary `
|
||||
-LocalPath "$setupPath\BuildComponentSetup.msi" `
|
||||
-ExtraInstallArgs ("/l*v", "$setupPath\buildComponentSetup.log") `
|
||||
-ExpectedSubject $(Get-MicrosoftPublisher)
|
||||
|
||||
Invoke-PesterTests -TestFile "BizTalk" -TestName "BizTalk Build Component Setup"
|
||||
@@ -1,25 +0,0 @@
|
||||
################################################################################
|
||||
## File: Install-CloudFoundryCli.ps1
|
||||
## Desc: Install Cloud Foundry CLI
|
||||
################################################################################
|
||||
|
||||
# Download the latest cf cli exe
|
||||
$cloudFoundryCliUrl = "https://packages.cloudfoundry.org/stable?release=windows64-exe&source=github"
|
||||
|
||||
$cloudFoundryArchPath = Invoke-DownloadWithRetry $cloudFoundryCliUrl
|
||||
|
||||
# Create directory for cf cli
|
||||
$cloudFoundryCliPath = "C:\cf-cli"
|
||||
New-Item -Path $cloudFoundryCliPath -ItemType Directory -Force
|
||||
|
||||
# Extract the zip archive
|
||||
Write-Host "Extracting cf cli..."
|
||||
Expand-7ZipArchive -Path $cloudFoundryArchPath -DestinationPath $cloudFoundryCliPath
|
||||
|
||||
# Add cf to path
|
||||
Add-MachinePathItem $cloudFoundryCliPath
|
||||
|
||||
# Validate cf signature
|
||||
Test-FileSignature -Path "$cloudFoundryCliPath\cf.exe" -ExpectedSubject 'CN="LF Projects, LLC", O="LF Projects, LLC", L=Wilmington, S=Delaware, C=US'
|
||||
|
||||
Invoke-PesterTests -TestFile "CLI.Tools" -TestName "CloudFoundry CLI"
|
||||
@@ -1,12 +0,0 @@
|
||||
################################################################################
|
||||
## File: Install-GoogleCloudCLI.ps1
|
||||
## Desc: Install Google Cloud CLI
|
||||
################################################################################
|
||||
|
||||
# https://cloud.google.com/sdk/docs/downloads-interactive
|
||||
Install-Binary `
|
||||
-Url 'https://dl.google.com/dl/cloudsdk/channels/rapid/GoogleCloudSDKInstaller.exe' `
|
||||
-InstallArgs @("/S", "/allusers", "/noreporting") `
|
||||
-ExpectedSubject 'CN=Google LLC, O=Google LLC, L=Mountain View, S=California, C=US, SERIALNUMBER=3582691, OID.2.5.4.15=Private Organization, OID.1.3.6.1.4.1.311.60.2.1.2=Delaware, OID.1.3.6.1.4.1.311.60.2.1.3=US'
|
||||
|
||||
Invoke-PesterTests -TestFile "Tools" -TestName "GoogleCloudCLI"
|
||||
@@ -1,13 +0,0 @@
|
||||
################################################################################
|
||||
## File: Install-NET48-devpack.ps1
|
||||
## Desc: Install .NET 4.8 devpack
|
||||
## Supply chain security: checksum validation
|
||||
################################################################################
|
||||
|
||||
# .NET 4.8 Dev pack
|
||||
Install-Binary `
|
||||
-Url 'https://download.visualstudio.microsoft.com/download/pr/014120d7-d689-4305-befd-3cb711108212/0307177e14752e359fde5423ab583e43/ndp48-devpack-enu.exe' `
|
||||
-InstallArgs @("Setup", "/passive", "/norestart") `
|
||||
-ExpectedSHA256Sum '0A7AC4A9B44CED6BB7A0EBF3AD9BA29F60BD4D3BEB2047E19F4D8749DE61F5AC'
|
||||
|
||||
Invoke-PesterTests -TestFile "Tools" -TestName "NET48"
|
||||
@@ -1,11 +0,0 @@
|
||||
################################################################################
|
||||
## File: Install-NET48.ps1
|
||||
## Desc: Install .NET 4.8
|
||||
## Supply chain security: checksum validation
|
||||
################################################################################
|
||||
|
||||
# .NET 4.8 Dev pack
|
||||
Install-Binary `
|
||||
-Url 'https://download.visualstudio.microsoft.com/download/pr/2d6bb6b2-226a-4baa-bdec-798822606ff1/8494001c276a4b96804cde7829c04d7f/ndp48-x86-x64-allos-enu.exe' `
|
||||
-InstallArgs @("Setup", "/passive", "/norestart") `
|
||||
-ExpectedSHA256Sum '68C9986A8DCC0214D909AA1F31BEE9FB5461BB839EDCA996A75B08DDFFC1483F'
|
||||
@@ -1,20 +0,0 @@
|
||||
################################################################################
|
||||
## File: Install-VCRedist.ps1
|
||||
## Desc: Install Visual C++ Redistributable
|
||||
## Supply chain security: checksum validation
|
||||
################################################################################
|
||||
|
||||
$baseUrl = "https://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC"
|
||||
$argumentList = ("/install", "/quiet", "/norestart")
|
||||
|
||||
Install-Binary `
|
||||
-Url "${baseUrl}/vcredist_x86.exe" `
|
||||
-InstallArgs $argumentList `
|
||||
-ExpectedSHA256Sum '99DCE3C841CC6028560830F7866C9CE2928C98CF3256892EF8E6CF755147B0D8'
|
||||
|
||||
Install-Binary `
|
||||
-Url "${baseUrl}/vcredist_x64.exe" `
|
||||
-InstallArgs $argumentList `
|
||||
-ExpectedSHA256Sum 'F3B7A76D84D23F91957AA18456A14B4E90609E4CE8194C5653384ED38DADA6F3'
|
||||
|
||||
Invoke-PesterTests -TestFile "Tools" -TestName "VCRedist"
|
||||
@@ -7,14 +7,6 @@ function Split-TableRowByColumns {
|
||||
return $Row.Split("|") | ForEach-Object { $_.trim() }
|
||||
}
|
||||
|
||||
function Get-AndroidSDKRoot {
|
||||
param(
|
||||
[string] $ComponentName
|
||||
)
|
||||
$path = Join-Path $env:ANDROID_HOME $ComponentName
|
||||
return "Location $path"
|
||||
}
|
||||
|
||||
function Build-AndroidTable {
|
||||
$packageInfo = Get-AndroidInstalledPackages
|
||||
return @(
|
||||
|
||||
@@ -247,10 +247,6 @@ function Get-PowerShellModules {
|
||||
return $result
|
||||
}
|
||||
|
||||
function Get-CachedDockerImages {
|
||||
return (docker images --digests --format "* {{.Repository}}:{{.Tag}}").Split("*") | Where-Object { $_ }
|
||||
}
|
||||
|
||||
function Get-CachedDockerImagesTableData {
|
||||
$allImages = docker images --digests --format "*{{.Repository}}:{{.Tag}}|{{.Digest}} |{{.CreatedAt}}"
|
||||
if (-not $allImages) {
|
||||
@@ -291,11 +287,6 @@ function Get-YAMLLintVersion {
|
||||
yamllint --version | Get-StringPart -Part 1
|
||||
}
|
||||
|
||||
function Get-BizTalkVersion {
|
||||
$bizTalkReg = Get-ItemProperty "HKLM:\SOFTWARE\WOW6432Node\Microsoft\BizTalk Server\3.0"
|
||||
return [ToolVersionNode]::new($bizTalkReg.ProductName, $bizTalkReg.ProductVersion)
|
||||
}
|
||||
|
||||
function Get-PipxVersion {
|
||||
pipx --version
|
||||
}
|
||||
|
||||
@@ -153,11 +153,6 @@ function Get-PackerVersion {
|
||||
return $packerVersion
|
||||
}
|
||||
|
||||
function Get-ParcelVersion {
|
||||
$parcelVersion = parcel --version
|
||||
return "$parcelVersion"
|
||||
}
|
||||
|
||||
function Get-PulumiVersion {
|
||||
return (pulumi version).TrimStart("v")
|
||||
}
|
||||
@@ -233,12 +228,6 @@ function Get-AlibabaCLIVersion {
|
||||
return $alicliVersion
|
||||
}
|
||||
|
||||
function Get-CloudFoundryVersion {
|
||||
$(cf version) -match "(?<version>\d+\.\d+\.\d+)" | Out-Null
|
||||
$cfVersion = $Matches.Version
|
||||
return $cfVersion
|
||||
}
|
||||
|
||||
function Get-7zipVersion {
|
||||
(7z | Out-String) -match "7-Zip (?<version>\d+\.\d+\.?\d*)" | Out-Null
|
||||
$version = $Matches.Version
|
||||
@@ -263,10 +252,6 @@ function Get-StackVersion {
|
||||
return $stackVersion
|
||||
}
|
||||
|
||||
function Get-GoogleCloudCLIVersion {
|
||||
return (((cmd /c "gcloud --version") -match "Google Cloud SDK") -replace "Google Cloud SDK").Trim()
|
||||
}
|
||||
|
||||
function Get-ServiceFabricSDKVersion {
|
||||
$serviceFabricSDKVersion = Get-ItemPropertyValue 'HKLM:\SOFTWARE\Microsoft\Service Fabric\' -Name FabricVersion
|
||||
return $serviceFabricSDKVersion
|
||||
|
||||
Reference in New Issue
Block a user