Skip to content

Commit

Permalink
remove HearthDb and HearthMirror binaries, clone in pre-build
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Zeier committed Jul 26, 2016
1 parent 2337e4b commit e938d70
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -157,3 +157,6 @@ $RECYCLE.BIN/
Hearthstone Deck Tracker.sln.ide/*
packages/*
!packages/repositories.config

HearthDb/
HearthMirror/
7 changes: 4 additions & 3 deletions HDTTests/HDTTests.csproj
Expand Up @@ -55,9 +55,6 @@
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="HearthDb">
<HintPath>..\lib\HearthDb.dll</HintPath>
</Reference>
<Reference Include="Rhino.Mocks, Version=3.6.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f, processorArchitecture=MSIL">
<HintPath>..\packages\RhinoMocks.3.6.1\lib\net\Rhino.Mocks.dll</HintPath>
<Private>True</Private>
Expand Down Expand Up @@ -98,6 +95,10 @@
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\HearthDb\HearthDb\HearthDb.csproj">
<Project>{7ed14243-e02b-4b94-af00-a67a62c282f0}</Project>
<Name>HearthDb</Name>
</ProjectReference>
<ProjectReference Include="..\Hearthstone Deck Tracker\Hearthstone Deck Tracker.csproj">
<Project>{e63a3f1c-e662-4e62-be43-af27cb9e953d}</Project>
<Name>Hearthstone Deck Tracker</Name>
Expand Down
12 changes: 12 additions & 0 deletions Hearthstone Deck Tracker.sln
Expand Up @@ -17,6 +17,10 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
lib\HearthDb.dll = lib\HearthDb.dll
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HearthDb", "HearthDb\HearthDb\HearthDb.csproj", "{7ED14243-E02B-4B94-AF00-A67A62C282F0}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HearthMirror", "HearthMirror\HearthMirror\HearthMirror.csproj", "{1694A2F8-645A-4263-A6AB-FC26323FD675}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x86 = Debug|x86
Expand All @@ -39,6 +43,14 @@ Global
{245A59F5-6E48-4B5B-B828-24A4C3EED309}.Debug|x86.Build.0 = Debug|x86
{245A59F5-6E48-4B5B-B828-24A4C3EED309}.Release|x86.ActiveCfg = Release|x86
{245A59F5-6E48-4B5B-B828-24A4C3EED309}.Release|x86.Build.0 = Release|x86
{7ED14243-E02B-4B94-AF00-A67A62C282F0}.Debug|x86.ActiveCfg = Debug|x86
{7ED14243-E02B-4B94-AF00-A67A62C282F0}.Debug|x86.Build.0 = Debug|x86
{7ED14243-E02B-4B94-AF00-A67A62C282F0}.Release|x86.ActiveCfg = Release|x86
{7ED14243-E02B-4B94-AF00-A67A62C282F0}.Release|x86.Build.0 = Release|x86
{1694A2F8-645A-4263-A6AB-FC26323FD675}.Debug|x86.ActiveCfg = Debug|x86
{1694A2F8-645A-4263-A6AB-FC26323FD675}.Debug|x86.Build.0 = Debug|x86
{1694A2F8-645A-4263-A6AB-FC26323FD675}.Release|x86.ActiveCfg = Release|x86
{1694A2F8-645A-4263-A6AB-FC26323FD675}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
36 changes: 25 additions & 11 deletions Hearthstone Deck Tracker/Hearthstone Deck Tracker.csproj
Expand Up @@ -85,13 +85,6 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\lib\De.TorstenMandelkow.MetroChart.dll</HintPath>
</Reference>
<Reference Include="HearthDb">
<HintPath>..\lib\HearthDb.dll</HintPath>
</Reference>
<Reference Include="HearthMirror, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\lib\HearthMirror.dll</HintPath>
</Reference>
<Reference Include="HtmlAgilityPack">
<HintPath>..\packages\HtmlAgilityPack.1.4.6\lib\Net45\HtmlAgilityPack.dll</HintPath>
</Reference>
Expand Down Expand Up @@ -1240,7 +1233,16 @@
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<ProjectReference Include="..\HearthDb\HearthDb\HearthDb.csproj">
<Project>{7ed14243-e02b-4b94-af00-a67a62c282f0}</Project>
<Name>HearthDb</Name>
</ProjectReference>
<ProjectReference Include="..\HearthMirror\HearthMirror\HearthMirror.csproj">
<Project>{1694a2f8-645a-4263-a6ab-fc26323fd675}</Project>
<Name>HearthMirror</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>if "$(ConfigurationName)" == "Release" (
Expand All @@ -1258,10 +1260,22 @@
xcopy /Y "..\..\..\..\HDTUninstaller\bin\Release\HDTUninstaller.exe" "..\Hearthstone Deck Tracker" )</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>mkdir "$(TargetDir)\Images\Bars"
<PreBuildEvent>if exist $(SolutionDir)HearthDb (
git -C $(SolutionDir)HearthDb fetch
git -C $(SolutionDir)HearthDb reset --hard origin/master
) else (
git clone https://github.com/HearthSim/HearthDb.git $(SolutionDir)HearthDb
)
if exist $(SolutionDir)HearthMirror (
git -C $(SolutionDir)HearthMirror fetch
git -C $(SolutionDir)HearthMirror reset --hard origin/master
) else (
git clone https://github.com/HearthSim/HearthMirror.git $(SolutionDir)HearthMirror
)
mkdir "$(TargetDir)\Images\Bars"
mkdir "$(TargetDir)\Images\Themes"
xcopy /E /Y "$(ProjectDir)Images\Bars" "$(TargetDir)\Images\Bars"
xcopy /E /Y "$(ProjectDir)Images\Themes" "$(TargetDir)\Images\Themes"</PreBuildEvent>
xcopy /E /Y /Q "$(ProjectDir)Images\Bars" "$(TargetDir)\Images\Bars"
xcopy /E /Y /Q "$(ProjectDir)Images\Themes" "$(TargetDir)\Images\Themes"</PreBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand Down
Binary file removed lib/HearthDb.dll
Binary file not shown.
Binary file removed lib/HearthMirror.dll
Binary file not shown.

0 comments on commit e938d70

Please sign in to comment.