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

@@ -118,20 +118,6 @@ Function .onInit
done:
FunctionEnd
Function CheckAndInstallDotNet
nsExec::ExecToStack /OEM 'cmd /c dir "%windir%\system32" | dotnet --list-runtimes | find /c /i "Microsoft.NETCore.App 8"'
Pop $0
Pop $1
StrCpy $2 $1 1
StrCmp $2 "1" 0 version_not_found
goto version_found
version_not_found:
inetc::get "https://aka.ms/dotnet/8.0/windowsdesktop-runtime-win-x64.exe" $TEMP\dotnet-runtime-win-x64.exe
ExecWait "$TEMP\dotnet-runtime-win-x64.exe /install /quiet /norestart"
Delete "$TEMP\dotnet-runtime-win-x64.exe"
version_found:
FunctionEnd
Function createDesktopShortcut
CreateShortcut "$DESKTOP\VRCX.lnk" "$INSTDIR\VRCX.exe"
FunctionEnd
@@ -164,8 +150,6 @@ Section "Install" SecInstall
Delete "$TEMP\vcredist_x64.exe"
VSRedistInstalled:
Call CheckAndInstallDotNet
SetOutPath "$INSTDIR"
File /r /x *.log /x *.pdb "..\bin\x64\Release\*.*"