mirror of
https://github.com/sinbad/UEScripts.git
synced 2025-02-23 13:15:23 +00:00
Instead of omitting PDBs in shipping, move them aside & keep
This commit is contained in:
parent
0b5f0ab62d
commit
5492f9c588
@ -239,10 +239,6 @@ try {
|
|||||||
$argList.Add("-pak") > $null
|
$argList.Add("-pak") > $null
|
||||||
}
|
}
|
||||||
$argList.Add("-prereqs") > $null
|
$argList.Add("-prereqs") > $null
|
||||||
if ($var.Configuration -eq "Shipping")
|
|
||||||
{
|
|
||||||
$argList.Add("-nodebuginfo") > $null
|
|
||||||
}
|
|
||||||
$argList.Add("-build") > $null
|
$argList.Add("-build") > $null
|
||||||
$argList.Add("-target=$($config.Target)") > $null
|
$argList.Add("-target=$($config.Target)") > $null
|
||||||
$argList.Add("-clientconfig=$($var.Configuration)") > $null
|
$argList.Add("-clientconfig=$($var.Configuration)") > $null
|
||||||
@ -291,6 +287,26 @@ try {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($var.Configuration -eq "Shipping")
|
||||||
|
{
|
||||||
|
# For shipping, move the PDBs aside but keep them for later use
|
||||||
|
$outDirPDB = "$($outDir)-ShippingPDB"
|
||||||
|
Remove-Item -Path $outDirPDB -Force -ErrorAction SilentlyContinue
|
||||||
|
New-Item -ItemType Directory $outDirPDB -Force > $null
|
||||||
|
|
||||||
|
$pdbs = @(Get-ChildItem -Path $outDir -Filter *.pdb -Recurse -ErrorAction SilentlyContinue -Force)
|
||||||
|
# Need to be in dir to calculate relative
|
||||||
|
Push-Location $outDir
|
||||||
|
$pdbs | ForEach-Object {
|
||||||
|
$pdbdir = Join-Path $outDirPDB $($_.DirectoryName | Resolve-Path -Relative)
|
||||||
|
New-Item -ItemType Directory $pdbdir -Force > $null
|
||||||
|
$pdbdest = Join-Path $outDirPDB $($_.FullName | Resolve-Path -Relative)
|
||||||
|
Move-Item $_.FullName $pdbdest -Force
|
||||||
|
}
|
||||||
|
Pop-Location
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if ($var.Zip) {
|
if ($var.Zip) {
|
||||||
if ($dryrun) {
|
if ($dryrun) {
|
||||||
Write-Output "Would have compressed $outdir to $(Join-Path $config.ZipDir "$($config.Target)_$($versionNumber)_$($var.Name).zip")"
|
Write-Output "Would have compressed $outdir to $(Join-Path $config.ZipDir "$($config.Target)_$($versionNumber)_$($var.Name).zip")"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user