diff --git a/windows/build.mjs b/windows/build.mjs index 87f6659..befffd4 100644 --- a/windows/build.mjs +++ b/windows/build.mjs @@ -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 Repair: "Luminary.cmd -Repair" downloads node.exe again and verifies its sha256 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); "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 login with separate accounts. - 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. - RAW decoding uses the bundled libraw WebAssembly; sharp's Windows prebuilt binary is included, so there is nothing else to install. diff --git a/windows/launcher/Luminary.ps1 b/windows/launcher/Luminary.ps1 index 04454bd..0027253 100644 --- a/windows/launcher/Luminary.ps1 +++ b/windows/launcher/Luminary.ps1 @@ -3,15 +3,15 @@ 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 - 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. 2. Start node.exe hidden with LUMINARY_DATA outside the bundle. 3. Wait for /api/health before opening the browser. Usage: - Luminary.ps1 start (or reuse) the server and open the browser - Luminary.ps1 -Stop stop the server started from this folder + Luminary.ps1 start (or reuse) the local engine and open the browser + 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 -Verify list the files the bundle must contain 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 # 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 -# 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 # start-up behaves the same with or without a connection. function Test-Health([int]$port) { @@ -561,7 +561,7 @@ if ($running) { } if (Test-Process ([int]$runtime.pid)) { $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 } } @@ -625,7 +625,7 @@ $logsOut = Get-LogDir $dataDir $port = Find-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:HOST = '127.0.0.1' $env:NODE_ENV = 'production' @@ -667,7 +667,7 @@ while ((Get-Date) -lt $deadline) { $tail = '' 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 (-not $process.HasExited) { & taskkill.exe /PID $process.Id /T /F | Out-Null } Remove-Item -LiteralPath $runtimeFile -Force -ErrorAction SilentlyContinue diff --git a/windows/launcher/Stop Luminary.cmd b/windows/launcher/Stop Luminary.cmd index cb002cb..9af2037 100644 --- a/windows/launcher/Stop Luminary.cmd +++ b/windows/launcher/Stop Luminary.cmd @@ -1,4 +1,4 @@ @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 pause diff --git a/windows/launcher/go/main.go b/windows/launcher/go/main.go index 8b22e09..6667260 100644 --- a/windows/launcher/go/main.go +++ b/windows/launcher/go/main.go @@ -9,8 +9,8 @@ // // Usage: // -// Luminary.exe start (or reuse) the server and open the browser -// Luminary.exe -stop stop the server started from this folder +// Luminary.exe start (or reuse) the local engine and open the browser +// Luminary.exe -stop stop the local engine started from this folder // Luminary.exe -repair re-download node.exe and verify it against version.txt // // The design and the edge cases are described in ../DESIGN.md. @@ -232,8 +232,8 @@ func run() error { time.Sleep(pollEvery) } if processAlive(info.PID) { - return fmt.Errorf("Luminary is already starting (pid %d) but is not answering on port %d. "+ - "See %s.", info.PID, info.Port, filepath.Join(dataDirectory(), "logs", "server.err.log")) + return fmt.Errorf("Luminary is already starting (pid %d) but is not answering on its "+ + "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. _ = cmd.Wait() removeRuntime() - writeLog("launcher.log", "server exited") + writeLog("launcher.log", "local engine exited") return nil } time.Sleep(pollEvery) @@ -309,8 +309,8 @@ func run() error { _ = cmd.Process.Kill() removeRuntime() - return fmt.Errorf("Luminary did not answer on %s within %s; see %s", - healthPath, startupWait, filepath.Join(logDir, "server.err.log")) + return fmt.Errorf("Luminary's local engine did not answer within %s; see %s", + startupWait, filepath.Join(logDir, "server.err.log")) } // --- runtime resolution -------------------------------------------------------