mirror of
https://github.com/Sonarr/Sonarr
synced 2024-12-22 15:56:58 +00:00
use build config to exclude xml doc rather than deleting them later
This commit is contained in:
parent
6e2fc186ca
commit
46304b8a71
1 changed files with 7 additions and 19 deletions
26
build.sh
26
build.sh
|
@ -7,6 +7,7 @@ outputFolderOsxApp='./_output_osx_app'
|
||||||
testPackageFolder='./_tests/'
|
testPackageFolder='./_tests/'
|
||||||
testSearchPattern='*.Test/bin/x86/Release'
|
testSearchPattern='*.Test/bin/x86/Release'
|
||||||
sourceFolder='./src'
|
sourceFolder='./src'
|
||||||
|
slnFile = '$sourceFolder/NzbDrone.sln'
|
||||||
updateFolder=$outputFolder/NzbDrone.Update
|
updateFolder=$outputFolder/NzbDrone.Update
|
||||||
updateFolderMono=$outputFolderMono/NzbDrone.Update
|
updateFolderMono=$outputFolderMono/NzbDrone.Update
|
||||||
|
|
||||||
|
@ -27,14 +28,6 @@ CleanFolder()
|
||||||
local path=$1
|
local path=$1
|
||||||
local keepConfigFiles=$2
|
local keepConfigFiles=$2
|
||||||
|
|
||||||
echo "Removing XMLDoc files"
|
|
||||||
local xmlfiles=( $(find $path -name "*.xml") )
|
|
||||||
for filename in "${xmlfiles[@]}"
|
|
||||||
do
|
|
||||||
if [ -e ${filename%.xml}.dll ] || [ -e ${filename%.xml}.exe ] ; then
|
|
||||||
rm $filename
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
find $path -name "*.transform" -exec rm "{}" \;
|
find $path -name "*.transform" -exec rm "{}" \;
|
||||||
|
|
||||||
|
@ -55,11 +48,6 @@ CleanFolder()
|
||||||
echo "Removing dylib files"
|
echo "Removing dylib files"
|
||||||
find $path -name "*.dylib" -exec rm "{}" \;
|
find $path -name "*.dylib" -exec rm "{}" \;
|
||||||
|
|
||||||
if [ -d $path/NuGet ] ; then
|
|
||||||
echo "Removing NuGet"
|
|
||||||
rm -rf $path/NuGet
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "Removing Empty folders"
|
echo "Removing Empty folders"
|
||||||
find $path -depth -empty -type d -exec rm -r "{}" \;
|
find $path -depth -empty -type d -exec rm -r "{}" \;
|
||||||
}
|
}
|
||||||
|
@ -76,17 +64,17 @@ AddJsonNet()
|
||||||
BuildWithMSBuild()
|
BuildWithMSBuild()
|
||||||
{
|
{
|
||||||
export PATH=$msBuild:$PATH
|
export PATH=$msBuild:$PATH
|
||||||
CheckExitCode MSBuild.exe $sourceFolder/NzbDrone.sln //t:Clean //m
|
CheckExitCode MSBuild.exe $slnFile //t:Clean //m
|
||||||
$nuget restore $sourceFolder/NzbDrone.sln
|
$nuget restore $slnFile
|
||||||
CheckExitCode MSBuild.exe $sourceFolder/NzbDrone.sln //p:Configuration=Release //p:Platform=x86 //t:Build //m
|
CheckExitCode MSBuild.exe $slnFile //p:Configuration=Release //p:Platform=x86 //t:Build //m //p:AllowedReferenceRelatedFileExtensions=.pdb
|
||||||
}
|
}
|
||||||
|
|
||||||
BuildWithXbuild()
|
BuildWithXbuild()
|
||||||
{
|
{
|
||||||
export MONO_IOMAP=case
|
export MONO_IOMAP=case
|
||||||
CheckExitCode xbuild /t:Clean $sourceFolder/NzbDrone.sln
|
CheckExitCode xbuild /t:Clean $slnFile
|
||||||
mono $nuget restore $sourceFolder/NzbDrone.sln
|
mono $nuget restore $slnFile
|
||||||
CheckExitCode xbuild /p:Configuration=Release /p:Platform=x86 /t:Build $sourceFolder/NzbDrone.sln
|
CheckExitCode xbuild /p:Configuration=Release /p:Platform=x86 /t:Build /m /p:AllowedReferenceRelatedFileExtensions=.pdb $slnFile
|
||||||
}
|
}
|
||||||
|
|
||||||
Build()
|
Build()
|
||||||
|
|
Loading…
Reference in a new issue