@ -7,6 +7,7 @@ outputFolderOsxApp='./_output_osx_app'
testPackageFolder = './_tests/'
testSearchPattern = '*.Test/bin/x86/Release'
sourceFolder = './src'
slnFile = '$sourceFolder/NzbDrone.sln'
updateFolder = $outputFolder /NzbDrone.Update
updateFolderMono = $outputFolderMono /NzbDrone.Update
@ -27,14 +28,6 @@ CleanFolder()
local path = $1
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 "{}" \;
@ -55,11 +48,6 @@ CleanFolder()
echo "Removing dylib files"
find $path -name "*.dylib" -exec rm "{}" \;
if [ -d $path /NuGet ] ; then
echo "Removing NuGet"
rm -rf $path /NuGet
fi
echo "Removing Empty folders"
find $path -depth -empty -type d -exec rm -r "{}" \;
}
@ -76,17 +64,17 @@ AddJsonNet()
BuildWithMSBuild( )
{
export PATH = $msBuild :$PATH
CheckExitCode MSBuild.exe $s ourceFolder/NzbDrone.sln //t:Clean //m
$nuget restore $s ourceFolder/NzbDrone.sln
CheckExitCode MSBuild.exe $s ourceFolder/NzbDrone.sln //p:Configuration= Release //p:Platform= x86 //t:Build //m
CheckExitCode MSBuild.exe $s lnFile //t:Clean //m
$nuget restore $s lnFile
CheckExitCode MSBuild.exe $s lnFile //p:Configuration= Release //p:Platform= x86 //t:Build //m //p:AllowedReferenceRelatedFileExtensions= .pdb
}
BuildWithXbuild( )
{
export MONO_IOMAP = case
CheckExitCode xbuild /t:Clean $s ourceFolder/NzbDrone.sln
mono $nuget restore $s ourceFolder/NzbDrone.sln
CheckExitCode xbuild /p:Configuration= Release /p:Platform= x86 /t:Build $sourceFolder /NzbDrone.sln
CheckExitCode xbuild /t:Clean $s lnFile
mono $nuget restore $s lnFile
CheckExitCode xbuild /p:Configuration= Release /p:Platform= x86 /t:Build /m /p:AllowedReferenceRelatedFileExtensions= .pdb $slnFile
}
Build( )