Skip to content

Commit

Permalink
build: adjust env var behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
Clazex committed Oct 19, 2021
1 parent c93a220 commit aa9dcc1
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
30 changes: 17 additions & 13 deletions GodSeekerPlus/GodSeekerPlus.csproj
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyTitle>GodSeekerPlus</AssemblyTitle>
<Version>0.5.0</Version>
<Version>0.5.1</Version>
<Description>A Hollow Knight mod to enhance your Godhome experience</Description>
<Copyright>Copyright © 2021</Copyright>
<Copyright>Copyright © 2021 Clazex</Copyright>

<TargetFramework>net472</TargetFramework>
<DebugType>portable</DebugType>
<LangVersion>latest</LangVersion>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>

<HollowKnightRefs Condition="$(HollowKnightRefs) == ''">../HollowKnightManaged/</HollowKnightRefs>
</PropertyGroup>

<PropertyGroup>
<HKRefs Condition="$(HKRefs) == ''">../HKManaged/</HKRefs>
<HKModdingApi Condition="$(HKModdingApi) == ''">$(HKRefs)</HKModdingApi>
<HKModRefs Condition="$(HKModRefs) == ''">$(HKRefs)/Mods</HKModRefs>
</PropertyGroup>

<ItemGroup>
<Compile Remove="dist/**" />
<EmbeddedResource Remove="dist/**" />
Expand All @@ -21,33 +25,33 @@

<ItemGroup>
<Reference Include="Assembly-CSharp">
<HintPath>$(HollowKnightRefs)/Assembly-CSharp.dll</HintPath>
<HintPath>$(HKModdingApi)/Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>$(HollowKnightRefs)/UnityEngine.dll</HintPath>
<HintPath>$(HKRefs)/UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>$(HollowKnightRefs)/UnityEngine.CoreModule.dll</HintPath>
<HintPath>$(HKRefs)/UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.UI">
<HintPath>$(HollowKnightRefs)/UnityEngine.UI.dll</HintPath>
<HintPath>$(HKRefs)/UnityEngine.UI.dll</HintPath>
</Reference>
<Reference Include="PlayMaker">
<HintPath>$(HollowKnightRefs)/PlayMaker.dll</HintPath>
<HintPath>$(HKRefs)/PlayMaker.dll</HintPath>
</Reference>
<Reference Include="MMHOOK_Assembly-CSharp">
<HintPath>$(HollowKnightRefs)/MMHOOK_Assembly-CSharp.dll</HintPath>
<HintPath>$(HKModdingApi)/MMHOOK_Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="MMHOOK_Playmaker">
<HintPath>$(HollowKnightRefs)/MMHOOK_Playmaker.dll</HintPath>
<HintPath>$(HKModdingApi)/MMHOOK_Playmaker.dll</HintPath>
</Reference>
<Reference Include="Vasi">
<HintPath>$(HollowKnightRefs)/Mods/Vasi/Vasi.dll</HintPath>
<HintPath>$(HKModRefs)/Vasi/Vasi.dll</HintPath>
</Reference>
</ItemGroup>

<Target Name="CopyMod" AfterTargets="PostBuildEvent">
<Copy SourceFiles="$(TargetPath);$(TargetDir)$(TargetName).pdb;$(SolutionDir)/README.md;$(SolutionDir)/README.zh.md;$(SolutionDir)/LICENSE" DestinationFolder="$(HollowKnightRefs)/Mods/$(TargetName)" SkipUnchangedFiles="true" />
<Copy SourceFiles="$(TargetPath);$(TargetDir)$(TargetName).pdb;$(SolutionDir)/README.md;$(SolutionDir)/README.zh.md;$(SolutionDir)/LICENSE" DestinationFolder="$(HKModRefs)/$(TargetName)" SkipUnchangedFiles="true" />
</Target>

<Target Name="CreateReleaseZip" AfterTargets="PostBuildEvent" Condition="'$(Configuration)' == 'Release'">
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ Compatible with `Hollow Knight` 1.5.
## Contributing

1. Clone the repository
2. Set environment variable `HollowKnightRefs` to your `Managed` folder in HK installation
2. Set environment variable `HKRefs` to your `Managed` folder in HK installation
2 changes: 1 addition & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
## 贡献

1. 克隆存储库
2. 将环境变量 `HollowKnightRefs` 设置为游戏文件中的 `Managed` 文件夹
2. 将环境变量 `HKRefs` 设置为游戏文件中的 `Managed` 文件夹

0 comments on commit aa9dcc1

Please sign in to comment.