mirror of
https://github.com/actions/runner-images.git
synced 2025-12-18 15:57:17 +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-MDHeader "Tools" -Level 3
|
||||||
$markdown += New-MDList -Style Unordered -Lines (@(
|
$markdown += New-MDList -Style Unordered -Lines (@(
|
||||||
(Get-7zipVersion),
|
(Get-7zipVersion),
|
||||||
|
(Get-Aria2Version),
|
||||||
(Get-AzCopyVersion),
|
(Get-AzCopyVersion),
|
||||||
(Get-BazelVersion),
|
(Get-BazelVersion),
|
||||||
(Get-BazeliskVersion),
|
(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 {
|
function Get-AzCosmosDBEmulatorVersion {
|
||||||
$regKey = gci HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* | gp | ? { $_.DisplayName -eq 'Azure Cosmos DB Emulator' }
|
$regKey = gci HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\* | gp | ? { $_.DisplayName -eq 'Azure Cosmos DB Emulator' }
|
||||||
$installDir = $regKey.InstallLocation
|
$installDir = $regKey.InstallLocation
|
||||||
|
|||||||
@@ -4,6 +4,12 @@ Describe "7-Zip" {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Describe "Aria2" {
|
||||||
|
It "Aria2" {
|
||||||
|
"aria2c --version" | Should -ReturnZeroExitCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Describe "AzCopy" {
|
Describe "AzCopy" {
|
||||||
It "AzCopy" {
|
It "AzCopy" {
|
||||||
"azcopy --version" | Should -ReturnZeroExitCode
|
"azcopy --version" | Should -ReturnZeroExitCode
|
||||||
|
|||||||
@@ -375,6 +375,7 @@
|
|||||||
"choco": {
|
"choco": {
|
||||||
"common_packages": [
|
"common_packages": [
|
||||||
{ "name": "7zip.install" },
|
{ "name": "7zip.install" },
|
||||||
|
{ "name": "aria2" },
|
||||||
{ "name": "azcopy10" },
|
{ "name": "azcopy10" },
|
||||||
{ "name": "Bicep" },
|
{ "name": "Bicep" },
|
||||||
{ "name": "gitversion.portable" },
|
{ "name": "gitversion.portable" },
|
||||||
|
|||||||
@@ -401,6 +401,7 @@
|
|||||||
"choco": {
|
"choco": {
|
||||||
"common_packages": [
|
"common_packages": [
|
||||||
{ "name": "7zip.install" },
|
{ "name": "7zip.install" },
|
||||||
|
{ "name": "aria2" },
|
||||||
{ "name": "azcopy10" },
|
{ "name": "azcopy10" },
|
||||||
{ "name": "Bicep" },
|
{ "name": "Bicep" },
|
||||||
{ "name": "gitversion.portable" },
|
{ "name": "gitversion.portable" },
|
||||||
|
|||||||
Reference in New Issue
Block a user