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

@@ -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"
}
}