Git Deployment of Build/Precompiled

Topics: Core, Installing Orchard
Nov 8, 2013 at 9:22 PM
Edited Nov 8, 2013 at 9:24 PM
I'm running a few instances of Orchard on AppHarbor, to do this I run msbuild -/t:precompiled form the command line. as described here

I create a git repository in the Build/Precompiled Folder,

.gitignore file
App_Data/Logs/
App_Data/Sites/Default/Search.Index.xml
App_Data/Sites/Default/Indexes/*
Then I push to AppHabour, This all works fine.

I do some more work on a custom module .... and then run msBuild /t:precompiled again to get my changes into the Precompiled folder. However the orchard project contains a Clean Method that removes all files from the Build folder, including my git repository...

I've change the code locally to
 <Target Name="Clean">

    <MSBuild Projects="$(SrcFolder)\Orchard.sln" Targets="Clean" />
    <RemoveDir Directories="$(ArtifactsFolder)" />
    <RemoveDir Directories="$(BuildFolder)\Compile" ContinueOnError="true"/>
    <RemoveDir Directories="$(BuildFolder)\Stage" ContinueOnError="true"/>
        
    
    <ItemGroup>
      <FilesToClean Include="$(BuildFolder)\Precompiled\*.*" 
                    Exclude="$(BuildFolder)\Precompiled\.gitignore;
                            $(BuildFolder)\Precompiled\.gitattributes;
                            $(BuildFolder)\Precompiled\robot.txt;" />
                    
      <Directories Include="$(BuildFolder)\Precompiled\bin;
                            $(BuildFolder)\Precompiled\Config;
                            $(BuildFolder)\Precompiled\Core;
                            $(BuildFolder)\Precompiled\Media;
                            $(BuildFolder)\Precompiled\Modules;
                            $(BuildFolder)\Precompiled\Themes"
                   />
    </ItemGroup>

    <Delete Files="@(FilesToClean)" ContinueOnError="true"/>
    <RemoveDir Directories="@(Directories)" ContinueOnError="true"/>
    
  
  </Target>
Question is should I submit a pull request, or is there a better way to do this that doesn't involve changing any of the orchard source files ?