Skip to content

Commit 62f6148

Browse files
committed
switch to using stripped binaries
1 parent 418459c commit 62f6148

File tree

12 files changed

+20
-43
lines changed

12 files changed

+20
-43
lines changed

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,4 @@ FodyWeavers.xsd
391391
*.msp
392392

393393
# JetBrains Rider
394-
*.sln.iml
395-
396-
# Dependencies which shouldn't be included, as they're part of FEZ
397-
Dependencies/*
398-
!Dependencies/*.md
394+
*.sln.iml

Dependencies/Common.dll

12 KB
Binary file not shown.

Dependencies/ContentSerialization.dll

8.5 KB
Binary file not shown.

Dependencies/EasyStorage.dll

5 KB
Binary file not shown.

Dependencies/FEZ.exe

365 KB
Binary file not shown.

Dependencies/FNA.dll

540 KB
Binary file not shown.

Dependencies/FezEngine.dll

331 KB
Binary file not shown.

Dependencies/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This directory contains the stripped binaries of FEZ, generated by [FEZStripGen](https://github.com/FEZModding/FEZStripGen/).
2+
3+
# DO NOT PUSH THE ORIGINAL VERSION OF THE STRIPPED BINARIES
4+
5+
However, you're more than free to replace them **locally**.

Dependencies/XnaWordWrapCore.dll

6 KB
Binary file not shown.

FEZ.HAT.mm.csproj

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@
2222
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
2323
</PropertyGroup>
2424

25-
<Import Project="$(ProjectDir)UserProperties.xml" />
26-
2725
<!-- Build operations -->
2826

2927
<Target Name="VerifyModReferences" BeforeTargets="BeforeBuild">
3028
<Error Text="You forgot to edit UserProperties.xml." Condition="$(UserPropertiesNotSetUp) == True" />
3129
</Target>
3230

31+
<Target Name="CleanUpHooksLibrary" BeforeTargets="Clean">
32+
<Delete Files="$(TargetDir)FEZ.Hooks.mm.dll" />
33+
</Target>
34+
3335
<Target Name="RearrangeDependencies" AfterTargets="Build">
3436
<ItemGroup>
3537
<MonoModDependencies Include="$(TargetDir)Mono*" />
@@ -42,23 +44,6 @@
4244
<Move SourceFiles="@(RepackerDependencies)" DestinationFolder="$(TargetDir)HATDependencies/FEZRepacker.Core"/>
4345
</Target>
4446

45-
<Target Name="CopyHatOver" AfterTargets="RearrangeDependencies" Condition="$(CopyOverHATToFez) == True">
46-
<ItemGroup>
47-
<SourceFiles Include="$(TargetDir)$(TargetName).dll" />
48-
<SourceFiles Include="$(TargetDir)FEZ.Hooks.mm.dll" />
49-
</ItemGroup>
50-
<ItemGroup>
51-
<MovedMonoModDependencies Include="$(TargetDir)/HATDependencies/MonoMod/*" />
52-
</ItemGroup>
53-
<ItemGroup>
54-
<MovedRepackerDependencies Include="$(TargetDir)/HATDependencies/FEZRepacker.Core/*" />
55-
</ItemGroup>
56-
57-
<Copy SourceFiles="@(SourceFiles)" DestinationFolder="$(FezDir)\" Retries="0" />
58-
<Copy SourceFiles="@(MovedMonoModDependencies)" DestinationFolder="$(FezDir)/HATDependencies/MonoMod/" Retries="0" />
59-
<Copy SourceFiles="@(MovedRepackerDependencies)" DestinationFolder="$(FezDir)/HATDependencies/FEZRepacker.Core/" Retries="0" />
60-
</Target>
61-
6247
<!-- Dependencies -->
6348

6449
<ItemGroup>
@@ -72,37 +57,36 @@
7257
<PackageReference Include="MonoMod.RuntimeDetour.HookGen" Version="22.7.31.1" GeneratePathProperty="true">
7358
<PrivateAssets>all</PrivateAssets>
7459
</PackageReference>
75-
7660
</ItemGroup>
7761

7862
<ItemGroup>
7963
<Reference Include="Common">
80-
<HintPath>$(FezDir)\Common.dll</HintPath>
64+
<HintPath>Dependencies\Common.dll</HintPath>
8165
<Private>False</Private>
8266
</Reference>
8367
<Reference Include="ContentSerialization">
84-
<HintPath>$(FezDir)\ContentSerialization.dll</HintPath>
68+
<HintPath>Dependencies\ContentSerialization.dll</HintPath>
8569
<Private>False</Private>
8670
</Reference>
8771
<Reference Include="EasyStorage">
88-
<HintPath>$(FezDir)\EasyStorage.dll</HintPath>
72+
<HintPath>Dependencies\EasyStorage.dll</HintPath>
8973
<Private>False</Private>
9074
</Reference>
9175
<Reference Include="FEZ">
92-
<HintPath>$(FezDir)\FEZ.exe</HintPath>
76+
<HintPath>Dependencies\FEZ.exe</HintPath>
9377
<Private>False</Private>
9478
</Reference>
9579
<Reference Include="FezEngine">
96-
<HintPath>$(FezDir)\FezEngine.dll</HintPath>
80+
<HintPath>Dependencies\FezEngine.dll</HintPath>
9781
<Private>False</Private>
9882
</Reference>
9983
<Reference Include="FNA">
100-
<HintPath>$(FezDir)\FNA.dll</HintPath>
84+
<HintPath>Dependencies\FNA.dll</HintPath>
10185
<Private>False</Private>
10286
</Reference>
10387
<Reference Include="System.IO.Compression" />
10488
<Reference Include="XnaWordWrapCore">
105-
<HintPath>$(FezDir)\XnaWordWrapCore.dll</HintPath>
89+
<HintPath>Dependencies\XnaWordWrapCore.dll</HintPath>
10690
<Private>False</Private>
10791
</Reference>
10892
</ItemGroup>

ILRepack.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8" ?>
22
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
33

4-
<Target Name="BuildHookBinaries" BeforeTargets="CopyHatOver" Condition="!Exists('$(TargetDir)FEZ.Hooks.mm.dll')">
4+
<Target Name="BuildHookBinaries" AfterTargets="Build" Condition="!Exists('$(TargetDir)FEZ.Hooks.mm.dll')">
55

66
<MakeDir Directories="$(TargetDir)"/>
77

@@ -12,7 +12,7 @@
1212
</ItemGroup>
1313

1414
<Exec
15-
Command='"$(TargetDir)\HATDependencies\MonoMod\MonoMod.RuntimeDetour.HookGen.exe" "$(FezDir)\%(HookBinaries.Identity)" "$(TargetDir)MMHOOK_%(HookBinaries.Identity)"'
15+
Command='"$(TargetDir)\HATDependencies\MonoMod\MonoMod.RuntimeDetour.HookGen.exe" "$(ProjectDir)\Dependencies\%(HookBinaries.Identity)" "$(TargetDir)MMHOOK_%(HookBinaries.Identity)"'
1616
WorkingDirectory="$(TargetDir)\HATDependencies\MonoMod"
1717
/>
1818

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,7 @@ It's that simple!
2626

2727
## Building HAT
2828

29-
1. Clone repository.
30-
2. Edit `UserProperties.xml` to set up dependencies:
31-
32-
* Remove the property `UserPropertiesNotSetUp`.
33-
* Set `FezDir` to FEZ's directory (where FEZ.exe and other binaries are located).
34-
* _Optional but recommended_: To prevent git from tracking your updated `UserProperties.xml`, run the command `git update-index --skip-worktree UserProperties.xml`.
35-
* Additionally, change `CopyOverHATToFez` flag if you want to copy HAT binary and all its dependencies to the FEZ directory once built.
36-
37-
3. Build it, and then follow the installation instructions to test it.
29+
HAT is now using stripped game binaries and NuGet packages for building process, so it is not required to configure anything. Building HAT libraries should be as easy as cloning the repository and running the building process within the IDE of your choice (or through dotnet CLI if that's your thing).
3830

3931
## "Documentation"
4032

0 commit comments

Comments
 (0)