mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
Added option to also retrieve symbol files alongside the dlls.
Signed-off-by: Konstantina Chremmou <konstantina.chremmou@citrix.com>
This commit is contained in:
parent
9e43369ac1
commit
4565eb584b
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user