fix(build): restore full-installer engine/injector csproj
SK-local's cimgui de-duplication deleted the plain cimgui.dll that Build-Installer.ps1 requires in Runtime\ and plugins import by name; the DesktopLog reference is no longer used by the engine or injector. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
5166594e49
commit
f47d2cf1ad
3 changed files with 27 additions and 25 deletions
|
|
@ -32,10 +32,6 @@
|
|||
<Optimize>false</Optimize>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\RynthCore.DesktopLog\RynthCore.DesktopLog.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ImGui.NET" Version="1.91.6.1" />
|
||||
<PackageReference Include="Avalonia" Version="11.2.3" />
|
||||
|
|
@ -55,10 +51,6 @@
|
|||
|
||||
<!-- Prevent trimmer from removing ImGui.NET's DllImport methods -->
|
||||
<!-- Root Avalonia assemblies so the AOT trimmer keeps them intact -->
|
||||
<ItemGroup>
|
||||
<TrimmerRootAssembly Include="RynthCore.DesktopLog" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<TrimmerRootAssembly Include="ImGui.NET" />
|
||||
<TrimmerRootAssembly Include="Avalonia" />
|
||||
|
|
@ -78,19 +70,38 @@
|
|||
<BundledSupportDll Include="Native\minhook.x86.dll" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Single ImGui native beside the engine: EntryPoint tries Runtime\RynthCore.cimgui.dll first (see EntryPoint.GetImGuiNativeCandidates). -->
|
||||
<Target Name="CopyBundledNativeDlls" AfterTargets="Build">
|
||||
<Copy
|
||||
SourceFiles="@(BundledNativeDll)"
|
||||
DestinationFiles="@(BundledNativeDll->'$(OutputPath)Native\%(Filename)%(Extension)')"
|
||||
SkipUnchangedFiles="true" />
|
||||
<Copy
|
||||
SourceFiles="@(BundledNativeDll)"
|
||||
DestinationFiles="@(BundledNativeDll->'$(OutputPath)Native\RynthCore.%(Filename)%(Extension)')"
|
||||
SkipUnchangedFiles="true" />
|
||||
<Copy
|
||||
SourceFiles="@(BundledNativeDll)"
|
||||
DestinationFiles="@(BundledNativeDll->'$(OutputPath)%(Filename)%(Extension)')"
|
||||
SkipUnchangedFiles="true" />
|
||||
<Copy
|
||||
SourceFiles="@(BundledNativeDll)"
|
||||
DestinationFiles="@(BundledNativeDll->'$(OutputPath)RynthCore.%(Filename)%(Extension)')"
|
||||
SkipUnchangedFiles="true" />
|
||||
<!-- ImGui.NET / publish may still emit plain cimgui.dll or Native\ copies; keep one prefixed name next to the engine. -->
|
||||
<Delete Files="$(OutputPath)cimgui.dll" Condition="Exists('$(OutputPath)cimgui.dll')" />
|
||||
<Delete Files="$(OutputPath)Native\cimgui.dll" Condition="Exists('$(OutputPath)Native\cimgui.dll')" />
|
||||
<Delete Files="$(OutputPath)Native\RynthCore.cimgui.dll" Condition="Exists('$(OutputPath)Native\RynthCore.cimgui.dll')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="CopyBundledNativeDllsToPublish" AfterTargets="Publish" Condition="'$(PublishDir)' != ''">
|
||||
<Copy
|
||||
SourceFiles="@(BundledNativeDll)"
|
||||
DestinationFiles="@(BundledNativeDll->'$(PublishDir)Native\%(Filename)%(Extension)')"
|
||||
SkipUnchangedFiles="true" />
|
||||
<Copy
|
||||
SourceFiles="@(BundledNativeDll)"
|
||||
DestinationFiles="@(BundledNativeDll->'$(PublishDir)Native\RynthCore.%(Filename)%(Extension)')"
|
||||
SkipUnchangedFiles="true" />
|
||||
<Copy
|
||||
SourceFiles="@(BundledNativeDll)"
|
||||
DestinationFiles="@(BundledNativeDll->'$(PublishDir)%(Filename)%(Extension)')"
|
||||
SkipUnchangedFiles="true" />
|
||||
<Copy
|
||||
SourceFiles="@(BundledNativeDll)"
|
||||
DestinationFiles="@(BundledNativeDll->'$(PublishDir)RynthCore.%(Filename)%(Extension)')"
|
||||
|
|
@ -101,13 +112,6 @@
|
|||
SkipUnchangedFiles="true" />
|
||||
</Target>
|
||||
|
||||
<!-- Run after the full publish graph so package/ILC drops of cimgui.dll are removed last. -->
|
||||
<Target Name="DedupePublishedCimguiCopies" AfterTargets="Publish" Condition="'$(PublishDir)' != ''">
|
||||
<Delete Files="$(PublishDir)cimgui.dll" Condition="Exists('$(PublishDir)cimgui.dll')" />
|
||||
<Delete Files="$(PublishDir)Native\cimgui.dll" Condition="Exists('$(PublishDir)Native\cimgui.dll')" />
|
||||
<Delete Files="$(PublishDir)Native\RynthCore.cimgui.dll" Condition="Exists('$(PublishDir)Native\RynthCore.cimgui.dll')" />
|
||||
</Target>
|
||||
|
||||
<Target Name="CopyBundledSupportDlls" AfterTargets="Build">
|
||||
<Copy
|
||||
SourceFiles="@(BundledSupportDll)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue