Build as Self Contained and Selfhost CefSharp SubProcess (#693)

* Added self contained parameter to builds

* Remove dotnet install from installer

* Fixed missing SubProcessExe

* Self hot browser subprocess

---------

Co-authored-by: Natsumi <cmcooper123@hotmail.com>
This commit is contained in:
Usman Shafiq
2023-12-04 02:52:34 -05:00
committed by GitHub
parent 312519bcf6
commit f053f2bec1
7 changed files with 61 additions and 21 deletions

View File

@@ -26,7 +26,8 @@ namespace VRCX
WindowlessRenderingEnabled = true,
PersistSessionCookies = true,
PersistUserPreferences = true,
UserAgent = Program.Version
UserAgent = Program.Version,
BrowserSubprocessPath = Environment.ProcessPath
};
cefSettings.RegisterScheme(new CefCustomScheme
@@ -59,7 +60,7 @@ namespace VRCX
//CefSharpSettings.WcfEnabled = true; // TOOD: REMOVE THIS LINE YO (needed for synchronous configRepository)
CefSharpSettings.ShutdownOnExit = false;
if (Cef.Initialize(cefSettings) == false)
if (Cef.Initialize(cefSettings, false) == false)
{
throw new Exception("Cef.Initialize()");
}