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:
BlankenshipG 2026-10-04 16:26:18 -04:00
commit f47d2cf1ad
3 changed files with 27 additions and 25 deletions

View file

@ -33,6 +33,9 @@
in the release workflow. All restored to full-installer's working versions.
- `Build-Release-All.ps1` now forwards only parameters `Build-Installer.ps1` declares
(`-Version`, `-RynthSuiteRoot`, `-IsccPath`).
- Engine / Injector `.csproj` restored to full-installer: SK's cimgui de-duplication deleted the plain
`cimgui.dll` that `Build-Installer.ps1` requires in `Runtime\` (and that plugins import by name), and
the DesktopLog reference was no longer used there. The launcher keeps DesktopLog (host diagnostics).
## Added
- **ub-Rythai 3.1.10** as an optional experimental installer component

View file

@ -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)"

View file

@ -1,11 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<ProjectReference Include="..\RynthCore.DesktopLog\RynthCore.DesktopLog.csproj" />
</ItemGroup>
<PropertyGroup>
<!-- Build-Installer.ps1 publishes this project self-contained for the bundle (see BUILD.md). -->
<OutputType>Exe</OutputType>
<TargetFramework>net10.0-windows</TargetFramework>
<PlatformTarget>x86</PlatformTarget>