Call the local process the local engine, not a server

Windows users read "server" as a network service and asked whether the app
phones home, even though the bundle only ever talks to 127.0.0.1. The launcher
dialogs, the help text, the Stop shortcut and the bundle README now call it the
local engine and say plainly that it is a background process on this PC.
This commit is contained in:
2026-12-01 12:14:31 +00:00
parent a7ba0d2e87
commit 7cad990c8e
4 changed files with 19 additions and 16 deletions
+4 -1
View File
@@ -456,6 +456,8 @@ Logs: logs\\server.out.log and logs\\server.err.log
Check: "Luminary.cmd -Verify" lists the files a complete bundle needs Check: "Luminary.cmd -Verify" lists the files a complete bundle needs
Repair: "Luminary.cmd -Repair" downloads node.exe again and verifies its sha256 Repair: "Luminary.cmd -Repair" downloads node.exe again and verifies its sha256
Sign-in: none — single-user desktop mode, no account setup Sign-in: none — single-user desktop mode, no account setup
Network: none — the app and its local engine stay on this PC, so it starts
and runs with the network disconnected
Window: opens in its own window (native when bundled, else chromeless Edge/Chrome); Window: opens in its own window (native when bundled, else chromeless Edge/Chrome);
"Luminary.cmd -Browser" for a normal tab "Luminary.cmd -Browser" for a normal tab
@@ -490,7 +492,8 @@ Notes
opens signed in. It is not meant for several people sharing one Windows opens signed in. It is not meant for several people sharing one Windows
login with separate accounts. login with separate accounts.
- The bundle is unsigned, so SmartScreen may ask once ("More info" -> "Run anyway"). - The bundle is unsigned, so SmartScreen may ask once ("More info" -> "Run anyway").
- The server listens on 127.0.0.1 only. Set HOST=0.0.0.0 before starting if - The local engine listens on 127.0.0.1 only: it is a background process on
this PC, not a network service. Set HOST=0.0.0.0 before starting only if
client proofing galleries must be reachable from other devices on the LAN. client proofing galleries must be reachable from other devices on the LAN.
- RAW decoding uses the bundled libraw WebAssembly; sharp's Windows prebuilt - RAW decoding uses the bundled libraw WebAssembly; sharp's Windows prebuilt
binary is included, so there is nothing else to install. binary is included, so there is nothing else to install.
+7 -7
View File
@@ -3,15 +3,15 @@
This is the no-toolchain launcher: it ships in every bundle and is what This is the no-toolchain launcher: it ships in every bundle and is what
Luminary.exe replaces when a Go build is available. It owns the three things Luminary.exe replaces when a Go build is available. It owns the three things
the server deliberately does not do for itself: Luminary's local engine deliberately does not do for itself:
1. Pick a free loopback port and pass it as PORT. 1. Pick a free loopback port and pass it as PORT.
2. Start node.exe hidden with LUMINARY_DATA outside the bundle. 2. Start node.exe hidden with LUMINARY_DATA outside the bundle.
3. Wait for /api/health before opening the browser. 3. Wait for /api/health before opening the browser.
Usage: Usage:
Luminary.ps1 start (or reuse) the server and open the browser Luminary.ps1 start (or reuse) the local engine and open the browser
Luminary.ps1 -Stop stop the server started from this folder Luminary.ps1 -Stop stop the local engine started from this folder
Luminary.ps1 -Status report what is running and where the data lives Luminary.ps1 -Status report what is running and where the data lives
Luminary.ps1 -Verify list the files the bundle must contain Luminary.ps1 -Verify list the files the bundle must contain
Luminary.ps1 -Repair re-download node.exe and check it against version.txt Luminary.ps1 -Repair re-download node.exe and check it against version.txt
@@ -101,7 +101,7 @@ function Read-Runtime {
# Invoke-WebRequest goes through WinINET, which resolves the system proxy (a PAC # Invoke-WebRequest goes through WinINET, which resolves the system proxy (a PAC
# script or WPAD) before it looks at the URL. On a machine with no network that # script or WPAD) before it looks at the URL. On a machine with no network that
# lookup can block for far longer than -TimeoutSec, so every probe timed out and # lookup can block for far longer than -TimeoutSec, so every probe timed out and
# the launcher killed a healthy local server: the app "would not start" offline. # the launcher killed a healthy local engine: the app "would not start" offline.
# A raw request over TCP to 127.0.0.1 uses no proxy, DNS or certificate store, so # A raw request over TCP to 127.0.0.1 uses no proxy, DNS or certificate store, so
# start-up behaves the same with or without a connection. # start-up behaves the same with or without a connection.
function Test-Health([int]$port) { function Test-Health([int]$port) {
@@ -561,7 +561,7 @@ if ($running) {
} }
if (Test-Process ([int]$runtime.pid)) { if (Test-Process ([int]$runtime.pid)) {
$logNote = Join-Path (Get-DataDir) 'logs' $logNote = Join-Path (Get-DataDir) 'logs'
Show-ErrorDialog ("Luminary has been starting for over two minutes and is not answering on port {0}.`n`nSee {1} for the server log." -f $runtime.port, $logNote) Show-ErrorDialog ("Luminary has been starting for over two minutes and is not answering on its local port {0}.`n`nSee {1} for the log." -f $runtime.port, $logNote)
exit 1 exit 1
} }
} }
@@ -625,7 +625,7 @@ $logsOut = Get-LogDir $dataDir
$port = Find-Port $port = Find-Port
$url = "http://127.0.0.1:$port" $url = "http://127.0.0.1:$port"
# The server reads these from the environment; nothing is written into app\. # The local engine reads these from the environment; nothing is written into app\.
$env:PORT = "$port" $env:PORT = "$port"
$env:HOST = '127.0.0.1' $env:HOST = '127.0.0.1'
$env:NODE_ENV = 'production' $env:NODE_ENV = 'production'
@@ -667,7 +667,7 @@ while ((Get-Date) -lt $deadline) {
$tail = '' $tail = ''
if (Test-Path -LiteralPath $errLog) { $tail = (Get-Content -LiteralPath $errLog -Tail 20) -join "`n" } if (Test-Path -LiteralPath $errLog) { $tail = (Get-Content -LiteralPath $errLog -Tail 20) -join "`n" }
Write-Host 'Luminary did not answer on /api/health.' Write-Host "Luminary's local engine did not answer."
if ($tail) { Write-Host $tail } if ($tail) { Write-Host $tail }
if (-not $process.HasExited) { & taskkill.exe /PID $process.Id /T /F | Out-Null } if (-not $process.HasExited) { & taskkill.exe /PID $process.Id /T /F | Out-Null }
Remove-Item -LiteralPath $runtimeFile -Force -ErrorAction SilentlyContinue Remove-Item -LiteralPath $runtimeFile -Force -ErrorAction SilentlyContinue
+1 -1
View File
@@ -1,4 +1,4 @@
@echo off @echo off
rem Stop the Luminary server started from this folder. rem Stop the Luminary local engine started from this folder.
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0Luminary.ps1" -Stop powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0Luminary.ps1" -Stop
pause pause
+7 -7
View File
@@ -9,8 +9,8 @@
// //
// Usage: // Usage:
// //
// Luminary.exe start (or reuse) the server and open the browser // Luminary.exe start (or reuse) the local engine and open the browser
// Luminary.exe -stop stop the server started from this folder // Luminary.exe -stop stop the local engine started from this folder
// Luminary.exe -repair re-download node.exe and verify it against version.txt // Luminary.exe -repair re-download node.exe and verify it against version.txt
// //
// The design and the edge cases are described in ../DESIGN.md. // The design and the edge cases are described in ../DESIGN.md.
@@ -232,8 +232,8 @@ func run() error {
time.Sleep(pollEvery) time.Sleep(pollEvery)
} }
if processAlive(info.PID) { if processAlive(info.PID) {
return fmt.Errorf("Luminary is already starting (pid %d) but is not answering on port %d. "+ return fmt.Errorf("Luminary is already starting (pid %d) but is not answering on its "+
"See %s.", info.PID, info.Port, filepath.Join(dataDirectory(), "logs", "server.err.log")) "local port %d. See %s.", info.PID, info.Port, filepath.Join(dataDirectory(), "logs", "server.err.log"))
} }
} }
} }
@@ -301,7 +301,7 @@ func run() error {
// code is deliberately ignored: "Stop" force-kills the child. // code is deliberately ignored: "Stop" force-kills the child.
_ = cmd.Wait() _ = cmd.Wait()
removeRuntime() removeRuntime()
writeLog("launcher.log", "server exited") writeLog("launcher.log", "local engine exited")
return nil return nil
} }
time.Sleep(pollEvery) time.Sleep(pollEvery)
@@ -309,8 +309,8 @@ func run() error {
_ = cmd.Process.Kill() _ = cmd.Process.Kill()
removeRuntime() removeRuntime()
return fmt.Errorf("Luminary did not answer on %s within %s; see %s", return fmt.Errorf("Luminary's local engine did not answer within %s; see %s",
healthPath, startupWait, filepath.Join(logDir, "server.err.log")) startupWait, filepath.Join(logDir, "server.err.log"))
} }
// --- runtime resolution ------------------------------------------------------- // --- runtime resolution -------------------------------------------------------