Added option to also retrieve symbol files alongside the dlls.

Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
Konstantina Chremmou 2018-02-23 12:24:20 +00:00 committed by Mihaela Stoica
parent 9e43369ac1
commit 4565eb584b

View File

@ -35,7 +35,10 @@
Param(
[Parameter(Mandatory=$true, HelpMessage ="Artifactory domain (e.g. artifactory.domain.com)")]
[String]$DOMAIN
[String]$DOMAIN,
[Parameter(HelpMessage ="Whether to download symbols (*.pdb files)")]
[switch]$SYMBOLS
)
$DOMAIN = $DOMAIN.Trim()
@ -55,6 +58,11 @@ foreach($dep in $DEPS_MAP.files) {
if (($filename -eq "putty.exe") -or ($filename -like "*.dll")) {
Invoke-WebRequest -Uri $pattern -Method Get -OutFile "$PACKAGE_DIR\$filename"
if ($SYMBOLS) {
$symbolfile = [IO.Path]::GetFileNameWithoutExtension($filename) + ".pdb"
Invoke-WebRequest -Uri $pattern -Method Get -OutFile "$PACKAGE_DIR\$symbolfile"
}
}
}