nvm on copying game dlls to local folder,

since epic/steam version are different and we dont want a git diff every time it switches
This commit is contained in:
JohnCorby 2022-02-10 20:38:43 -08:00
parent 82db6644f7
commit eda0a8c9dc

View File

@ -9,27 +9,19 @@
<NoWarn>CS1998;CS0649</NoWarn>
</PropertyGroup>
<PropertyGroup>
<GameDllsDir Condition="Exists('$(GameDir)')">$(GameDir)\OuterWilds_Data\Managed</GameDllsDir>
<UnityDllsDir Condition="Exists('$(UnityAssetsDir)')">$(UnityAssetsDir)\Dlls</UnityDllsDir>
</PropertyGroup>
<Target Name="delete asset bundle crap" BeforeTargets="PreBuildEvent">
<Exec Command="del /f AssetBundles\AssetBundles" />
<Exec Command="del /f AssetBundles\*.manifest" />
</Target>
<Target Name="copy game dlls to local folder" BeforeTargets="PreBuildEvent" Condition="Exists('$(GameDir)')">
<Exec Command="del /f ..\GameDlls\*.dll" />
<Exec Command="copy /y &quot;$(GameDllsDir)\UnityEngine.CoreModule.dll&quot; ..\GameDlls" />
<Exec Command="copy /y &quot;$(GameDllsDir)\OWML.ModHelper.dll&quot; ..\GameDlls" />
<Exec Command="copy /y &quot;$(GameDllsDir)\Assembly-CSharp.dll&quot; ..\GameDlls" />
<Exec Command="copy /y &quot;$(GameDllsDir)\UnityEngine.AnimationModule.dll&quot; ..\GameDlls" />
<Exec Command="copy /y &quot;$(GameDllsDir)\OWML.Common.dll&quot; ..\GameDlls" />
</Target>
<Target Name="weave qsb" AfterTargets="PostBuildEvent">
<Exec Command="&quot;..\MirrorWeaver\bin\$(Configuration)\MirrorWeaver&quot; &quot;$(TargetPath)&quot; ..\GameDlls" />
</Target>
<Target Name="copy dlls to unity" AfterTargets="PostBuildEvent" Condition="Exists('$(UnityAssetsDir)') and Exists('$(GameDir)')">
<PropertyGroup>
<GameDllsDir>$(GameDir)\OuterWilds_Data\Managed</GameDllsDir>
<UnityDllsDir>$(UnityAssetsDir)\Dlls</UnityDllsDir>
</PropertyGroup>
<Exec Command="del /f &quot;$(UnityDllsDir)\*.dll&quot;" />
<Exec Command="del /f &quot;$(UnityDllsDir)\*.exe&quot;" />