mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
Add aria2 (aria2c) to Windows (#3795)
This commit is contained in:
@@ -75,6 +75,7 @@ $markdown += New-MDList -Style Unordered -Lines (@(
|
||||
$markdown += New-MDHeader "Tools" -Level 3
|
||||
$markdown += New-MDList -Style Unordered -Lines (@(
|
||||
(Get-7zipVersion),
|
||||
(Get-Aria2Version),
|
||||
(Get-AzCopyVersion),
|
||||
(Get-BazelVersion),
|
||||
(Get-BazeliskVersion),
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
function Get-Aria2Version {
|
||||
(aria2c -v | Out-String) -match "(?<version>(\d+\.){1,}\d+)" | Out-Null
|
||||
$aria2Version = $Matches.Version
|
||||
return "aria2 $aria2Version"
|
||||
}
|
||||
|
||||
function Get-AzCosmosDBEmulatorVersion {
|
||||
$regKey = gci HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* | gp | ? { $_.DisplayName -eq 'Azure Cosmos DB Emulator' }
|
||||
$installDir = $regKey.InstallLocation
|
||||
|
||||
@@ -4,6 +4,12 @@ Describe "7-Zip" {
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Aria2" {
|
||||
It "Aria2" {
|
||||
"aria2c --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "AzCopy" {
|
||||
It "AzCopy" {
|
||||
"azcopy --version" | Should -ReturnZeroExitCode
|
||||
|
||||
@@ -375,6 +375,7 @@
|
||||
"choco": {
|
||||
"common_packages": [
|
||||
{ "name": "7zip.install" },
|
||||
{ "name": "aria2" },
|
||||
{ "name": "azcopy10" },
|
||||
{ "name": "Bicep" },
|
||||
{ "name": "gitversion.portable" },
|
||||
|
||||
@@ -401,6 +401,7 @@
|
||||
"choco": {
|
||||
"common_packages": [
|
||||
{ "name": "7zip.install" },
|
||||
{ "name": "aria2" },
|
||||
{ "name": "azcopy10" },
|
||||
{ "name": "Bicep" },
|
||||
{ "name": "gitversion.portable" },
|
||||
|
||||
Reference in New Issue
Block a user