From 9797db14a39678e53ab5350faabd4066b3ad6416 Mon Sep 17 00:00:00 2001 From: Daniel Wallace Date: Sat, 7 Nov 2026 15:41:27 -0800 Subject: [PATCH] Ship WebView2 Core and the x86 loader in Runtime; installer checks; notices Build-Installer.ps1 now requires Runtime\Microsoft.Web.WebView2.Core.dll and Runtime\WebView2Loader.dll in a CoreCLR staging tree. THIRD-PARTY-NOTICES.md gains the Microsoft WebView2 SDK entry with the licence copied from the package's LICENSE.txt. A scratch EngineOnly publish put both DLLs at the target root, the loader is x86 (0x14C), and no runtimes\ folder or WinForms/Wpf DLL is present, so no csproj change was needed. Co-Authored-By: Claude Opus 5.5 --- THIRD-PARTY-NOTICES.md | 37 +++++++++++++++++++++++++++++++++++ installer/Build-Installer.ps1 | 4 +++- 2 files changed, 40 insertions(+), 1 deletion(-) diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.md index fa14668..91ad778 100644 --- a/THIRD-PARTY-NOTICES.md +++ b/THIRD-PARTY-NOTICES.md @@ -76,3 +76,40 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ``` + +## Microsoft WebView2 SDK (the in-game web panel) + +- What: `Microsoft.Web.WebView2.Core.dll` (the managed WebView2 Core wrapper) and the x86 `WebView2Loader.dll`, which the engine uses to host the in-game web panel on the CoreCLR build. They find and drive the Evergreen WebView2 Runtime already installed on the machine; the runtime itself is not shipped. +- Where: shipped in `Runtime\` of every CoreCLR install, referenced from `src/RynthCore.Engine/RynthCore.Engine.csproj` (NuGet `Microsoft.Web.WebView2` 1.0.2903.40). The package's WinForms and WPF assemblies are not used or shipped. +- Source: https://www.nuget.org/packages/Microsoft.Web.WebView2 +- Licence: Microsoft's BSD-style licence, reproduced below from the package's own LICENSE.txt. + +``` +Copyright (C) Microsoft Corporation. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright +notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above +copyright notice, this list of conditions and the following disclaimer +in the documentation and/or other materials provided with the +distribution. + * The name of Microsoft Corporation, or the names of its contributors +may not be used to endorse or promote products derived from this +software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +``` diff --git a/installer/Build-Installer.ps1 b/installer/Build-Installer.ps1 index 8cc0b84..79f9625 100644 --- a/installer/Build-Installer.ps1 +++ b/installer/Build-Installer.ps1 @@ -359,7 +359,9 @@ if (-not $NativeAot) { $required += @( "$StagingDir\Runtime\RynthCore.Shim.dll", "$StagingDir\Runtime\dotnet\coreclr.dll", - "$StagingDir\Runtime\dotnet\System.Private.CoreLib.dll" + "$StagingDir\Runtime\dotnet\System.Private.CoreLib.dll", + "$StagingDir\Runtime\Microsoft.Web.WebView2.Core.dll", + "$StagingDir\Runtime\WebView2Loader.dll" ) } if (-not $SkipDecalBridge) {