Add the browser UI, terminal menu, and one-liner bootstrap

Deployr is now installable and drivable the way winutil is: one PowerShell or
shell line, no prior setup on the machine.

    irm .../scripts/install.ps1 | iex
    curl -fsSL .../scripts/install.sh | sh

The bootstrap self-elevates, picks the right binary for the machine's
architecture, verifies it against the release SHA256SUMS, puts it on PATH and
opens the UI. Arguments pass through for unattended use.

`deployr ui` serves a point-and-click page on loopback and opens a browser at
it: apps grouped by category, profile bundles, a filter box, and per-app
progress streamed live over SSE as the engine runs. A browser page rather than a
native window because it is the only GUI that behaves the same on all three
platforms without a toolkit or cgo, so the binary stays one static file.

It is not a hole in the endpoint: loopback-only on an OS-assigned port, a
session token minted per run and required on every request, plus Origin and
Host checks so no other page can drive a tool that installs software as SYSTEM.
A run keeps going if the tab closes -- aborting mid-installer is worse than
finishing without a spectator.

`deployr menu` is the same thing as a numbered terminal picker, for a machine
reached over SSH or a recovery console where no browser exists.

Engine gains optional OnAppStart/OnResult hooks, which is what makes progress
streamable instead of a report that only shows up at the end.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5 committed 2026-08-26 17:16:52 -05:00
1 parent 77f88afd7a
commit af2a96e072
8 files changed
+1460 -3

No files matched your search

+7
View File
@@ -125,6 +125,10 @@ func Main(args []string) int {
rest := args[1:]
switch cmd {
case "ui", "gui":
return uiCommand(ctx, rest)
case "menu":
return menuCommand(ctx, rest)
case "install", "i":
return actionCommand(ctx, "install", rest)
case "update", "upgrade":
@@ -211,6 +215,8 @@ USAGE
deployr <command> [flags] [apps...]
COMMANDS
ui open the point-and-click interface in a browser
menu pick apps from a terminal menu (no browser needed)
install <app|@profile>... install applications
update <app|@profile>... update installed applications (--all for everything present)
uninstall <app|@profile>... remove applications
@@ -230,6 +236,7 @@ COMMON FLAGS
--timeout 30m per-installer timeout
EXAMPLES
deployr ui
deployr install chrome 7zip vlc
deployr install @standard --json
deployr update --all