Update Copy Command to work on linux/mac

This commit is contained in:
ExilProductions
2025-11-16 05:02:22 +01:00
parent f44a9ebf58
commit 0aef6e59f9

View File

@@ -391,8 +391,16 @@
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
</PropertyGroup>
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
<Exec Command="COPY &quot;$(TargetPath)&quot; &quot;$(VIGIL_GAME_DIR)\Mods&quot;" />
<!-- Windows -->
<Exec Condition="'$(OS)' == 'Windows_NT'"
Command="copy &quot;$(TargetPath)&quot; &quot;$(VIGIL_GAME_DIR)\Mods&quot;" />
<!-- Linux/Mac -->
<Exec Condition="'$(OS)' != 'Windows_NT'"
Command="cp &quot;$(TargetPath)&quot; &quot;$(VIGIL_GAME_DIR)/Mods&quot;" />
</Target>
</Project>