diff --git a/Installers/Zip/Build.Installer.Zip.csproj b/Installers/Zip/Build.Installer.Zip.csproj index 1b16038b..037285bf 100644 --- a/Installers/Zip/Build.Installer.Zip.csproj +++ b/Installers/Zip/Build.Installer.Zip.csproj @@ -49,14 +49,8 @@ <WarningLevel>4</WarningLevel> </PropertyGroup> <Target Name="Build"> - <CallTarget Targets="CleanTreeCopy" /> - <!-- Make a clean copy of the source tree --> - <CreateItem Include="$(InputPath)**\*.*" Exclude="$(InputPath)**\.svn\**\*.*;
 $(InputPath)**\obj\**\*.*;
 $(InputPath)Installers\Zip\opentk\**\*.*;
 $(InputPath)Documentation\Source\**\*.*;
 $(InputPath)Automation\**\*.*;
 $(InputPath)Old\**\*.*;
 $(InputPath)**\OpenTK*.xml;
 $(InputPath)**\*.suo;
 $(InputPath)**\*.pidb;
 $(InputPath)**\*.userprefs;
 $(InputPath)**\opentk*.zip;
 $(InputPath)**\opentk*.exe;
 $(InputPath)**\vshost*.exe;
 "> - <Output TaskParameter="Include" ItemName="FileList" /> - </CreateItem> - <Copy SourceFiles="@(FileList)" DestinationFiles="@(FileList->'$(OutputPath)%(RecursiveDir)%(Filename)%(Extension)')" /> <!-- Zip the copy of the source tree --> - <Exec Command="7z a -tzip opentk.zip $(OutputPath)" /> + <Exec Command="7z a -tzip opentk.zip ../../* '-xr!opentk*.zip' '-xr!opentk*.exe' '-xr!.*' '-xr!obj' '-xr!Documentation/Source' '-xr!Automation' '-xr!*.suo' '-xr!*.pidb' '-xr!*.userprefs' '-xr!vshost*.exe'" /> <!-- Copy the zip file to the root directory and add a date stamp --> <ReadLinesFromFile File="../../Version.txt"> <Output TaskParameter="Lines" ItemName="Version" /> @@ -68,14 +62,9 @@ <Output TaskParameter="Include" ItemName="FilesToDelete" /> </CreateItem> <Delete Files="@(FilesToDelete)" /> - <CallTarget Targets="CleanTreeCopy" /> </Target> <Target Name="Rebuild"> <CallTarget Targets="Clean" /> <CallTarget Targets="Build" /> </Target> - <Target Name="CleanTreeCopy"> - <RemoveDir Directories="$(OutputPath)" Condition="$(OS) == 'Windows_NT'" /> - <Exec Command="rm -rf '$(OutputPath)'" Condition="$(OS) != 'Windows_NT'" /> - </Target> </Project>