Skip to content

Commit

Permalink
chore: Update bootstrap to unpack new HearthMirror.zip package
Browse files Browse the repository at this point in the history
  • Loading branch information
joolean committed Aug 31, 2023
1 parent 43d65c8 commit 37a1fb5
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
7 changes: 6 additions & 1 deletion Bootstrap/Bootstrap.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<HDTDirectory>$(SlnDirectory)/Hearthstone Deck Tracker</HDTDirectory>

<HearthDbUrl>https://libs.hearthsim.net/hdt/HearthDb.dll</HearthDbUrl>
<HearthMirrorUrl>https://libs.hearthsim.net/hdt/HearthMirror.dll</HearthMirrorUrl>
<HearthMirrorUrl>https://libs.hearthsim.net/hdt/HearthMirror.zip</HearthMirrorUrl>
<HSReplayUrl>https://libs.hearthsim.net/hdt/HSReplay.dll</HSReplayUrl>
<BobsBuddyUrl>https://libs.hearthsim.net/hdt/BobsBuddy.dll</BobsBuddyUrl>
</PropertyGroup>
Expand All @@ -42,6 +42,11 @@
</DownloadFile>
</Target>

<Target Name="UnpackHearthMirrorDeps" BeforeTargets="Bootstrap" DependsOnTargets="DownloadDeps">
<Unzip SourceFiles="$(SlnDirectory)/lib/HearthMirror.zip" DestinationFolder="$(SlnDirectory)/lib" />
<Delete Files="$(SlnDirectory)/lib/HearthMirror.zip" />
</Target>

<Target Name="CloneHDTLocalization" Condition="!Exists('$(SlnDirectory)/HDT-Localization')" BeforeTargets="Bootstrap">
<Message Importance="normal" Text="Couldn't find HDT-Localization repo." />
<Exec WorkingDirectory="$(SlnDirectory)" Command="git clone --depth=1 https://github.com/HearthSim/HDT-Localization.git HDT-Localization" />
Expand Down
8 changes: 4 additions & 4 deletions HearthWatcher.Test/HearthWatcher.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
<PackageReference Include="MSTest.TestFramework" Version="1.4.0" />
</ItemGroup>
<ItemGroup>
<Reference Include="HearthMirror">
<HintPath>..\lib\HearthMirror.dll</HintPath>
</Reference>
<ProjectReference Include="..\HearthWatcher\HearthWatcher.csproj" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\HearthWatcher\HearthWatcher.csproj" />
<Reference Include="HearthMirror">
<HintPath>..\lib\HearthMirror.exe</HintPath>
</Reference>
</ItemGroup>
</Project>
2 changes: 1 addition & 1 deletion HearthWatcher/HearthWatcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<HintPath>..\lib\HearthDb.dll</HintPath>
</Reference>
<Reference Include="HearthMirror">
<HintPath>..\lib\HearthMirror.dll</HintPath>
<HintPath>..\lib\HearthMirror.exe</HintPath>
</Reference>
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
Expand Down
2 changes: 1 addition & 1 deletion Hearthstone Deck Tracker/Hearthstone Deck Tracker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<HintPath>..\lib\HearthDb.dll</HintPath>
</Reference>
<Reference Include="HearthMirror">
<HintPath>..\lib\HearthMirror.dll</HintPath>
<HintPath>..\lib\HearthMirror.exe</HintPath>
</Reference>
<Reference Include="HSReplay">
<HintPath>..\lib\HSReplay.dll</HintPath>
Expand Down
2 changes: 1 addition & 1 deletion ResourceGenerator/ResourceGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<HintPath>..\lib\HearthDb.dll</HintPath>
</Reference>
<Reference Include="HearthMirror">
<HintPath>..\lib\HearthMirror.dll</HintPath>
<HintPath>..\lib\HearthMirror.exe</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="System.Xaml" />
Expand Down

0 comments on commit 37a1fb5

Please sign in to comment.