Skip to content

Commit 92f9093

Browse files
committed
Create .mdb files for mono releases
mono needs to be run with the --debug switch
1 parent d0818da commit 92f9093

5 files changed

+15
-2
lines changed

build.ps1

+15-2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ Function PackageMono()
7474
Write-Host Removing Update Client
7575
Remove-Item -Recurse -Force "$outputFolderMono\NzbDrone.Update"
7676

77+
Write-Host Creating MDBs
78+
get-childitem $outputFolderMono -File -Include @("*.exe", "*.dll") -Exclude @("MediaInfo.dll", "sqlite3.dll") -Recurse | foreach ($_) {
79+
Write-Host "Creating .mdb for $_"
80+
& "tools\pdb2mdb\pdb2mdb.exe" $_.fullname
81+
}
82+
7783
Write-Host Removing PDBs
7884
get-childitem $outputFolderMono -File -Filter *.pdb -Recurse | foreach ($_) {remove-item $_.fullname}
7985

@@ -89,8 +95,15 @@ Function PackageMono()
8995
Copy-Item "$sourceFolder\MediaInfoDotNet.dll.config" $outputFolderMono
9096

9197
Write-Host Renaming NzbDrone.Console.exe to NzbDrone.exe
92-
get-childitem $outputFolderMono -File -Filter NzbDrone.exe -Recurse | foreach ($_) {remove-item $_.fullname}
93-
Rename-Item "$outputFolderMono\NzbDrone.Console.exe" "NzbDrone.exe"
98+
Get-ChildItem $outputFolderMono -File -Filter "NzbDrone.exe*" -Recurse | foreach ($_) {remove-item $_.fullname}
99+
100+
Get-ChildItem $outputFolderMono -File -Filter "NzbDrone.Console.exe*" -Recurse | foreach ($_) {
101+
$newName = $_.fullname -Replace ".Console",""
102+
103+
Rename-Item $_.fullname $newName
104+
}
105+
106+
Remove-Item "$outputFolderMono\NzbDrone.Console.vshost.exe"
94107

95108
Write-Host "##teamcity[progressFinish 'Creating Mono Package']"
96109
}

tools/pdb2mdb/Mono.Cecil.Mdb.dll

42.5 KB
Binary file not shown.

tools/pdb2mdb/Mono.Cecil.dll

276 KB
Binary file not shown.
Binary file not shown.

tools/pdb2mdb/pdb2mdb.exe

60 KB
Binary file not shown.

0 commit comments

Comments
 (0)