V17 / d6d373561692
Run-Gui.ps1
Interfaces/Gui/Run-Gui.ps1
Unchanged from the preceding versionPS1
param([switch]$NoBrowser)
$ErrorActionPreference = 'Stop'
$guiRoot = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '../..'))
Push-Location -LiteralPath $guiRoot
try {
dotnet build Interfaces/Gui/LilithDesktop/LilithDesktop.csproj -c Release -p:NuGetAudit=false
if ($LASTEXITCODE -ne 0) { throw 'GUI build failed.' }
$guiAssembly = Join-Path $guiRoot 'Admin/Build/bin/Interfaces/Gui/LilithDesktop/LilithDesktop/Release/net10.0-windows/LilithDesktop.dll'
dotnet $guiAssembly
if ($LASTEXITCODE -ne 0) { throw 'Lilith desktop did not finish normally. Read the launch error above; no Windows security policy is modified by this script.' }
} finally { Pop-Location }