Add aria2 (aria2c) to Windows (#3795)

This commit is contained in:
Julien Marrec
2021-08-05 17:16:04 +02:00
committed by GitHub
parent 71a9049e38
commit 99fa3a3396
5 changed files with 17 additions and 2 deletions

View File

@@ -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),

View File

@@ -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
@@ -274,4 +280,4 @@ function Get-SwigVersion {
(swig -version | Out-String) -match "version (?<version>\d+\.\d+\.\d+)" | Out-Null
$swigVersion = $Matches.Version
return "Swig $swigVersion"
}
}

View File

@@ -4,6 +4,12 @@ Describe "7-Zip" {
}
}
Describe "Aria2" {
It "Aria2" {
"aria2c --version" | Should -ReturnZeroExitCode
}
}
Describe "AzCopy" {
It "AzCopy" {
"azcopy --version" | Should -ReturnZeroExitCode
@@ -104,4 +110,4 @@ Describe "Kotlin" {
It "<toolName> is available" -TestCases ($kotlinPackages | ForEach-Object { @{ toolName = $_ } }) {
"$toolName -version" | Should -ReturnZeroExitCode
}
}
}

View File

@@ -375,6 +375,7 @@
"choco": {
"common_packages": [
{ "name": "7zip.install" },
{ "name": "aria2" },
{ "name": "azcopy10" },
{ "name": "Bicep" },
{ "name": "gitversion.portable" },

View File

@@ -401,6 +401,7 @@
"choco": {
"common_packages": [
{ "name": "7zip.install" },
{ "name": "aria2" },
{ "name": "azcopy10" },
{ "name": "Bicep" },
{ "name": "gitversion.portable" },