test: verify and document desktop ui
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
[CmdletBinding()]
|
||||
param(
|
||||
[string]$UvPath,
|
||||
[string]$OllamaPath,
|
||||
[string]$OllamaModels,
|
||||
[string]$DataDir,
|
||||
[string]$UvCacheDir,
|
||||
[string]$PythonInstallDir
|
||||
)
|
||||
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$env:JAVIS_START_INTERFACE = 'gui'
|
||||
|
||||
$sharedStarter = Join-Path $PSScriptRoot 'start-javis.ps1'
|
||||
if (-not (Test-Path -LiteralPath $sharedStarter -PathType Leaf)) {
|
||||
throw "Das gemeinsame sichere Javis-Startskript wurde nicht gefunden."
|
||||
}
|
||||
|
||||
& $sharedStarter @PSBoundParameters
|
||||
exit $LASTEXITCODE
|
||||
@@ -113,7 +113,12 @@ if (-not (Test-OllamaReady)) {
|
||||
|
||||
Push-Location $repositoryRoot
|
||||
try {
|
||||
& $resolvedUv run javis chat
|
||||
if ($env:JAVIS_START_INTERFACE -eq 'gui') {
|
||||
& $resolvedUv run javis gui
|
||||
}
|
||||
else {
|
||||
& $resolvedUv run javis chat
|
||||
}
|
||||
exit $LASTEXITCODE
|
||||
}
|
||||
finally {
|
||||
|
||||
Reference in New Issue
Block a user