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

+48 -3
View File
@@ -11,6 +11,46 @@ There is no server and no agent. Deployr is a single static executable you drop
on a machine — by hand, or through your RMM's script runner — and it exits with
a status code your automation can branch on.
## One-liner
```powershell
irm https://git.starwarslab.us/ATOM_IT/Deployr/raw/branch/main/scripts/install.ps1 | iex
```
```sh
curl -fsSL https://git.starwarslab.us/ATOM_IT/Deployr/raw/branch/main/scripts/install.sh | sh
```
That elevates if needed, downloads the right binary for the machine, verifies it
against the release checksums, puts it on PATH, and opens the UI.
To skip the UI and just run something, pass arguments through:
```powershell
& ([scriptblock]::Create((irm https://git.starwarslab.us/ATOM_IT/Deployr/raw/branch/main/scripts/install.ps1))) install @standard
```
```sh
curl -fsSL https://git.starwarslab.us/ATOM_IT/Deployr/raw/branch/main/scripts/install.sh | sh -s -- install @standard
```
## The UI
`deployr ui` serves a point-and-click interface on loopback and opens your
browser at it. Checkboxes grouped by category, one-click profile bundles, a
filter box, and live per-app progress streamed from the engine as it runs.
It is a browser page rather than a native window for one reason: it is the only
GUI that behaves identically on Windows, macOS and Linux without a toolkit or
cgo, so the binary stays a single static file. It binds `127.0.0.1` on a random
port, requires a session token minted at startup, and rejects cross-origin and
non-loopback requests — nothing is exposed to the network.
On a machine with no browser (SSH, recovery console), `deployr menu` gives you
the same thing as a numbered terminal picker.
## The CLI
```
deployr install chrome 7zip vlc
deployr install @standard --json
@@ -60,6 +100,8 @@ deployr doctor
| Command | What it does |
| --- | --- |
| `deployr ui` | Open the point-and-click interface in a browser |
| `deployr menu` | Pick apps from a terminal menu (no browser needed) |
| `deployr install <app...>` | Install applications that are not already present |
| `deployr update <app...>` | Update installed applications (`--all` for everything present) |
| `deployr uninstall <app...>` | Remove applications |
@@ -211,13 +253,16 @@ internal/detect is it already installed (registry, paths, commands)
internal/download vendor downloads with retries and checksum pinning
internal/platform OS, arch, elevation, well-known directories
internal/run non-interactive command execution with timeouts
internal/cli command line parsing and output rendering
internal/ui local web UI (embedded page, SSE progress, token auth)
internal/cli command line parsing, terminal menu, output rendering
scripts/install.* one-liner bootstrap for Windows and Unix
```
## Status
Working: catalog, all providers, install/update/uninstall/status/list/info/
doctor, JSON output, overlays, RMM exit codes.
doctor, the browser UI and terminal menu, the bootstrap one-liners, JSON output,
overlays, RMM exit codes.
Not built yet: a central dashboard (deliberately — this is the standalone CLI),
Not built yet: a central dashboard (deliberately — this is the standalone tool),
scheduled self-updates, and per-app version pinning.