mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-20 15:41:01 +00:00
change post build events
This commit is contained in:
parent
417433f59b
commit
fcf7706b8e
@ -8,7 +8,7 @@ namespace QNetWeaver
|
||||
{
|
||||
private static void Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("Start!");
|
||||
Console.WriteLine("Start weaving process.");
|
||||
|
||||
if (args.Length == 0)
|
||||
{
|
||||
@ -23,6 +23,7 @@ namespace QNetWeaver
|
||||
|
||||
Program.CheckDLLPath(unityEngine);
|
||||
Program.CheckDLLPath(qnetDLL);
|
||||
Program.CheckDLLPath(unetDLL);
|
||||
Program.CheckOutputDirectory(outputDirectory);
|
||||
Program.CheckAssemblyPath(assembly);
|
||||
Weaver.WeaveAssemblies(assembly, null, null, outputDirectory, unityEngine, qnetDLL, unetDLL);
|
||||
@ -30,34 +31,32 @@ namespace QNetWeaver
|
||||
|
||||
private static void CheckDLLPath(string path)
|
||||
{
|
||||
Console.WriteLine($"Check dll {path} ...");
|
||||
if (!File.Exists(path))
|
||||
{
|
||||
throw new Exception("dll could not be located at " + path + "!");
|
||||
}
|
||||
}
|
||||
|
||||
private static void CheckAssemblies(IEnumerable<string> assemblyPaths)
|
||||
{
|
||||
foreach (var assemblyPath in assemblyPaths)
|
||||
{
|
||||
Program.CheckAssemblyPath(assemblyPath);
|
||||
}
|
||||
Console.WriteLine($"Path OK!");
|
||||
}
|
||||
|
||||
private static void CheckAssemblyPath(string assemblyPath)
|
||||
{
|
||||
Console.WriteLine($"Check assembly path {assemblyPath} ...");
|
||||
if (!File.Exists(assemblyPath))
|
||||
{
|
||||
throw new Exception("Assembly " + assemblyPath + " does not exist!");
|
||||
}
|
||||
Console.WriteLine($"Assembly Path OK!");
|
||||
}
|
||||
|
||||
private static void CheckOutputDirectory(string outputDir)
|
||||
{
|
||||
Console.WriteLine($"Check output path {outputDir} ...");
|
||||
if (!Directory.Exists(outputDir))
|
||||
{
|
||||
Directory.CreateDirectory(outputDir);
|
||||
}
|
||||
Console.WriteLine($"Output Path OK!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -121,6 +121,7 @@
|
||||
<Compile Include="Animation\Player\CrouchSync.cs" />
|
||||
<Compile Include="Animation\Player\Patches\PlayerAnimationPatches.cs" />
|
||||
<Compile Include="Animation\Player\PlayerHeadRotationSync.cs" />
|
||||
<Compile Include="Animation\Player\Thrusters\FlamesAndBubbles\SetUpThrusterFlames.cs" />
|
||||
<Compile Include="CampfireSync\CampfireManager.cs" />
|
||||
<Compile Include="CampfireSync\Events\CampfireStateEvent.cs" />
|
||||
<Compile Include="CampfireSync\Patches\CampfirePatches.cs" />
|
||||
@ -358,8 +359,16 @@
|
||||
<ItemGroup />
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>xcopy /e /i /y "$(TargetDir)*" "$(OwmlDir)\Mods\$(ProjectName)"
|
||||
<PostBuildEvent>md "$(OwmlDir)\Mods\$(ProjectName)"
|
||||
md "$(OwmlDir)\Mods\$(ProjectName)\assets"
|
||||
del "$(OwmlDir)\Mods\$(ProjectName)\config.json"
|
||||
|
||||
xcopy /e /i /y "$(SolutionDir)\AssetBundles" "$(OwmlDir)\Mods\$(ProjectName)\assets"</PostBuildEvent>
|
||||
copy /y "$(ProjectDir)\default-config.json" "$(OwmlDir)\Mods\$(ProjectName)"
|
||||
copy /y "$(SolutionDir)\AssetBundles" "$(OwmlDir)\Mods\$(ProjectName)\assets
|
||||
copy /y "$(ProjectDir)\manifest.json" "$(OwmlDir)\Mods\$(ProjectName)"
|
||||
|
||||
"$(SolutionDir)\QNetWeaver\bin\Debug\QNetWeaver.exe" "$(GameDir)\OuterWilds_Data\Managed\UnityEngine.dll" "$(OwmlDir)\Mods\$(ProjectName)\QuantumUNET.dll" "$(GameDir)\OuterWilds_Data\Managed\UnityEngine.Networking.dll" "$(SolutionDir)\WeavedFiles" "$(TargetPath)"
|
||||
|
||||
copy /y "$(SolutionDir)\WeavedFiles\QSB.dll" "$(OwmlDir)\Mods\$(ProjectName)"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
@ -118,7 +118,8 @@
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
<PostBuildEvent>md "$(OwmlDir)\Mods\QSB"
|
||||
|
||||
copy /y "$(TargetPath)" "$(OwmlDir)\Mods\QSB"</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
</Project>
|
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user