Skip to content

Commit 2c12a22

Browse files
Merge pull request #18 from Lordfirespeed/main
Include README in distributions
2 parents 26fa166 + c946978 commit 2c12a22

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Directory.Build.props

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<PackageProjectUrl>https://github.com/EvaisaDev/UnityNetcodePatcher</PackageProjectUrl>
1010
<RepositoryUrl>https://github.com/EvaisaDev/UnityNetcodePatcher</RepositoryUrl>
1111
<RepositoryType>git</RepositoryType>
12+
<PackageReadmeFile>README.md</PackageReadmeFile>
1213
</PropertyGroup>
1314

1415
<!-- MinVer -->
@@ -22,4 +23,8 @@
2223
<PrivateAssets>all</PrivateAssets>
2324
</PackageReference>
2425
</ItemGroup>
26+
27+
<ItemGroup>
28+
<None Include="$(ProjectDir)../README.md" Pack="true" PackagePath="/"/>
29+
</ItemGroup>
2530
</Project>

NetcodePatcher.Cli/NetcodePatcher.Cli.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
<LegacyPackagePackedFile>$(LegacyPackageDistDir)NetcodePatcher-$(MinVerMajor).$(MinVerMinor).$(MinVerPatch)-$(TargetPlatformName).zip</LegacyPackagePackedFile>
3535
</PropertyGroup>
3636
<ItemGroup>
37-
<LegacyPackageFiles Include="$(OutputPath)/net8.0/*.dll" />
37+
<LegacyPackageFiles Include="$(ProjectDir)../README.md"/>
38+
<LegacyPackageFiles Include="$(OutputPath)/net8.0/*.dll"/>
3839
<LegacyPackageFiles Include="$(OutputPath)/net8.0/NetcodePatcher*"/>
3940
</ItemGroup>
4041

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
*Note, this is intended to be a tool for modders, mods should be shipped after patching and this tool should not be installed by users.*
1414

1515
## Preparing mods for patching
16-
- Make sure Debug Symbols is set to `Portable` and not embedded.
16+
- Make sure Debug Symbols are set to `Portable` or `Embedded` and not `Full`.
1717
- To ensure that the patched NetworkBehaviours are initialized properly, add the following code snippet to your mod, in a place where it will only run once, such as `Awake()`
1818
- **It is very important that it only runs once!**
1919
```cs

0 commit comments

Comments
 (0)