mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
use copy/delete task instead of shell command because it's faster
This commit is contained in:
parent
90c91571d4
commit
05ea4fa1c3
@ -8,43 +8,61 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="clean before building" BeforeTargets="PreBuildEvent">
|
||||
<Exec Command="del /f /q "$(OutputPath)\*.dll"" IgnoreExitCode="true" />
|
||||
<Exec Command="del /f /q "$(OutputPath)\*.exe"" IgnoreExitCode="true" />
|
||||
<Exec Command="del /f /q "$(OutputPath)\*.pdb"" IgnoreExitCode="true" />
|
||||
<Exec Command="del /f /q "$(OutputPath)\AssetBundles\*"" IgnoreExitCode="true" />
|
||||
<ItemGroup>
|
||||
<_Files Remove="@(_Files)" />
|
||||
<_Files Include="$(OutputPath)\*.dll" />
|
||||
<_Files Include="$(OutputPath)\*.exe" />
|
||||
<_Files Include="$(OutputPath)\*.pdb" />
|
||||
|
||||
<_Files Include="$(OutputPath)\AssetBundles\*" />
|
||||
</ItemGroup>
|
||||
<Delete Files="@(_Files)" />
|
||||
</Target>
|
||||
<Target Name="clean after building" AfterTargets="PostBuildEvent">
|
||||
<ItemGroup>
|
||||
<_Files Remove="@(_Files)" />
|
||||
<_Files Include="$(OutputPath)\*.exe.config" />
|
||||
</ItemGroup>
|
||||
<Delete Files="@(_Files)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="weave qsb" AfterTargets="PostBuildEvent">
|
||||
<Exec Command=""..\MirrorWeaver\bin\$(Configuration)\MirrorWeaver" "$(TargetPath)" ..\GameDlls" />
|
||||
</Target>
|
||||
|
||||
<PropertyGroup>
|
||||
<GameDllsDir Condition="Exists('$(GameDir)')">$(GameDir)\OuterWilds_Data\Managed</GameDllsDir>
|
||||
<UnityDllsDir Condition="Exists('$(UnityAssetsDir)')">$(UnityAssetsDir)\Dlls</UnityDllsDir>
|
||||
</PropertyGroup>
|
||||
<Target Name="remove dumb files" AfterTargets="PostBuildEvent">
|
||||
<Exec Command="del /f /q "$(OutputPath)\*.exe.config"" />
|
||||
</Target>
|
||||
<Target Name="weave qsb" AfterTargets="PostBuildEvent">
|
||||
<Exec Command=""..\MirrorWeaver\bin\$(Configuration)\MirrorWeaver" "$(TargetPath)" ..\GameDlls" />
|
||||
</Target>
|
||||
<Target Name="copy dlls to unity" AfterTargets="PostBuildEvent" Condition="Exists('$(UnityDllsDir)') and Exists('$(GameDllsDir)')">
|
||||
<Exec Command="del /f /q "$(UnityDllsDir)\*.dll"" />
|
||||
<Exec Command="del /f /q "$(UnityDllsDir)\*.exe"" />
|
||||
<Exec Command="del /f /q "$(UnityDllsDir)\*.pdb"" />
|
||||
<ItemGroup>
|
||||
<_Files Remove="@(_Files)" />
|
||||
<_Files Include="$(UnityDllsDir)\*.dll" />
|
||||
<_Files Include="$(UnityDllsDir)\*.exe" />
|
||||
<_Files Include="$(UnityDllsDir)\*.pdb" />
|
||||
</ItemGroup>
|
||||
<Delete Files="@(_Files)" />
|
||||
|
||||
<Exec Command="copy /y "$(OutputPath)\*.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(OutputPath)\*.exe" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(OutputPath)\*.pdb" "$(UnityDllsDir)"" IgnoreExitCode="true" />
|
||||
<ItemGroup>
|
||||
<_Files Remove="@(_Files)" />
|
||||
<_Files Include="$(OutputPath)\*.dll" />
|
||||
<_Files Include="$(OutputPath)\*.exe" />
|
||||
<_Files Include="$(OutputPath)\*.pdb" />
|
||||
|
||||
<Exec Command="copy /y "$(GameDllsDir)\Assembly-CSharp*.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\Unity.InputSystem.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\UnityEngine.UI.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\EOS-SDK.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\UniSense.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\Autofac.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\Newtonsoft.Json.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\0Harmony.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\MonoMod*.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\Mono.Cecil.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\OWML*.dll" "$(UnityDllsDir)"" />
|
||||
<Exec Command="copy /y "$(GameDllsDir)\NAudio-Unity.dll" "$(UnityDllsDir)"" />
|
||||
<_Files Include="$(GameDllsDir)\Assembly-CSharp*.dll" />
|
||||
<_Files Include="$(GameDllsDir)\Unity.InputSystem.dll" />
|
||||
<_Files Include="$(GameDllsDir)\UnityEngine.UI.dll" />
|
||||
<_Files Include="$(GameDllsDir)\EOS-SDK.dll" />
|
||||
<_Files Include="$(GameDllsDir)\UniSense.dll" />
|
||||
<_Files Include="$(GameDllsDir)\Autofac.dll" />
|
||||
<_Files Include="$(GameDllsDir)\Newtonsoft.Json.dll" />
|
||||
<_Files Include="$(GameDllsDir)\0Harmony.dll" />
|
||||
<_Files Include="$(GameDllsDir)\MonoMod*.dll" />
|
||||
<_Files Include="$(GameDllsDir)\Mono.Cecil.dll" />
|
||||
<_Files Include="$(GameDllsDir)\OWML*.dll" />
|
||||
<_Files Include="$(GameDllsDir)\NAudio-Unity.dll" />
|
||||
</ItemGroup>
|
||||
<Copy SourceFiles="@(_Files)" DestinationFolder="$(UnityDllsDir)" />
|
||||
</Target>
|
||||
|
||||
<ItemGroup>
|
||||
|
Loading…
Reference in New Issue
Block a user