diff --git a/.gitignore b/.gitignore index 9a94c29b03..bae0566e9a 100644 --- a/.gitignore +++ b/.gitignore @@ -157,3 +157,6 @@ $RECYCLE.BIN/ Hearthstone Deck Tracker.sln.ide/* packages/* !packages/repositories.config + +HearthDb/ +HearthMirror/ diff --git a/HDTTests/HDTTests.csproj b/HDTTests/HDTTests.csproj index 9d7384b01f..d041711c1c 100644 --- a/HDTTests/HDTTests.csproj +++ b/HDTTests/HDTTests.csproj @@ -55,9 +55,6 @@ MinimumRecommendedRules.ruleset - - ..\lib\HearthDb.dll - ..\packages\RhinoMocks.3.6.1\lib\net\Rhino.Mocks.dll True @@ -98,6 +95,10 @@ + + {7ed14243-e02b-4b94-af00-a67a62c282f0} + HearthDb + {e63a3f1c-e662-4e62-be43-af27cb9e953d} Hearthstone Deck Tracker diff --git a/Hearthstone Deck Tracker.sln b/Hearthstone Deck Tracker.sln index 225fd0600e..4fcf9cb3f4 100644 --- a/Hearthstone Deck Tracker.sln +++ b/Hearthstone Deck Tracker.sln @@ -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 @@ -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 diff --git a/Hearthstone Deck Tracker/Hearthstone Deck Tracker.csproj b/Hearthstone Deck Tracker/Hearthstone Deck Tracker.csproj index 2a74874e01..168b23cdc0 100644 --- a/Hearthstone Deck Tracker/Hearthstone Deck Tracker.csproj +++ b/Hearthstone Deck Tracker/Hearthstone Deck Tracker.csproj @@ -85,13 +85,6 @@ False ..\lib\De.TorstenMandelkow.MetroChart.dll - - ..\lib\HearthDb.dll - - - False - ..\lib\HearthMirror.dll - ..\packages\HtmlAgilityPack.1.4.6\lib\Net45\HtmlAgilityPack.dll @@ -1240,7 +1233,16 @@ false - + + + {7ed14243-e02b-4b94-af00-a67a62c282f0} + HearthDb + + + {1694a2f8-645a-4263-a6ab-fc26323fd675} + HearthMirror + + if "$(ConfigurationName)" == "Release" ( @@ -1258,10 +1260,22 @@ xcopy /Y "..\..\..\..\HDTUninstaller\bin\Release\HDTUninstaller.exe" "..\Hearthstone Deck Tracker" ) - mkdir "$(TargetDir)\Images\Bars" + 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" +xcopy /E /Y /Q "$(ProjectDir)Images\Bars" "$(TargetDir)\Images\Bars" +xcopy /E /Y /Q "$(ProjectDir)Images\Themes" "$(TargetDir)\Images\Themes"