The Gantry desktop app
The desktop app is the web app in a window of its own, with native
access to your files. It opens a project by path, so Safari and Firefox users,
whose browsers cannot write to a folder, can edit in place. It adds capture
ingestion (drop a screenshot on the window, or point it at a folder that
screenshots land in) and a badge for open blocking defects. It runs the same
core as the CLI, compiled to WebAssembly in the window, so what it lints and
writes is what gantry lints and writes. Nothing leaves your machine: there
is no account, no server and no telemetry.
It runs on macOS (Apple silicon), Windows (x64) and Linux (x64).
Install
Section titled “Install”Each release carries the bundles and one checksum file:
| OS | File |
|---|---|
| macOS (Apple silicon) | Gantry_<version>_aarch64.dmg |
| Windows (x64) | Gantry_<version>_x64-setup.exe |
| Linux (x64) | Gantry_<version>_amd64.AppImage |
| all | gantry-desktop.sha256 |
There is no Intel Mac build: GitHub no longer offers Intel macOS runners to
build one on. Check a download before you open it (run it in the folder that
holds the files; shasum -a 256 -c on macOS):
sha256sum -c --ignore-missing gantry-desktop.sha256The bundles are unsigned. Signing and notarization need certificates that the maintainer holds, and are not part of the release pipeline. Each OS warns about an unsigned app; the checksum above is how you know the file is the one the release built.
-
macOS. Open the
.dmgand drag Gantry to Applications, then open it. Since macOS 15 (Sequoia) the right-click Open route is gone. The first time, macOS shows “Gantry” Not Opened (“Apple could not verify “Gantry” is free of malware…”); choose Done. Then open System Settings → Privacy & Security, scroll to Security, where it says “Gantry” was blocked to protect your Mac, and choose Open Anyway. Confirm with your password or Touch ID, then choose Open Anyway once more in the dialog that follows. macOS remembers this; later launches open straight away.If macOS says the app is damaged and can’t be opened, or you prefer the terminal, clear the quarantine flag once instead:
Terminal window xattr -dr com.apple.quarantine /Applications/Gantry.app -
Windows. Run the installer. SmartScreen says “Windows protected your PC”: choose More info, then Run anyway.
-
Linux. Make the file executable and run it:
Terminal window chmod +x Gantry_<version>_amd64.AppImage./Gantry_<version>_amd64.AppImageThe AppImage carries its own WebKitGTK 4.1 and AppIndicator libraries, so it needs neither installed. Whether the tray icon shows depends on your desktop: GNOME shows it only with an AppIndicator extension.
To update, install the next release over the old one. The app does not check for updates.
Open a project
Section titled “Open a project”Choose Open folder… and pick the project’s folder, the one that holds
gantry.yaml. The native dialog is the only way in: the app can read and write
only inside a folder you chose there, or one from the recent list that you
chose before. Projects you open are remembered under Recent (the last ten),
and in the tray menu’s Recent submenu.
Try the example opens examples/reference-slice, bundled with the app, in
memory.
Writes stay inside the project’s content directory, which the app reads
from gantry.yaml itself: with content: . the content directory is the
project folder, so the app may write anywhere in the project except .git.
If the app cannot read the content: line for certain (it is quoted, holds
an escape, appears twice, or is written in a form the app’s line reader does
not take, such as an anchor or a flow map), it writes nothing in that project
and says so: make such changes with the gantry CLI, or write the line as a
plain content: <folder>.
The app reads what gantry reads: gantry.yaml, the content directory and
the files your platforms’ test globs match. It skips .git and node_modules,
so a test glob that reaches into node_modules finds nothing here, though the
CLI would. The history rules, which need git, show as skipped, as they do in
the web app.
Editing works as it does in the web app: amend a ruling, file and close a
defect, start a pass. The same views and the same forms, in the same
guide. A change writes the files gantry would write, and the app
shows a diff before it writes. If another program changes a file the app has
open, the app notices and reloads it.
Add captures
Section titled “Add captures”Drop screenshots (or any file) onto the window, or choose a watch folder
for the project: a folder, usually where your screenshot tool saves, outside
the project. A file that settles in it is offered to you as it lands. Either
way an Ingest prompt opens with the files, and its fields are the flags of
gantry evidence add: platform, appearance, pass, device, app and a note.
Choose Record, and the app stores each blob and writes its manifest entry,
the way gantry evidence add does. A file that is not an image is recorded
too, as a .bin blob.
The limits:
- A file over 64 MiB is refused, the cap
gantry evidence addholds. - One drop takes at most 50 files and 256 MiB. The prompt holds at most 256 MiB waiting to be recorded; record or cancel those first, then bring in more.
- A dropped folder is refused: drop the files in it.
- The watch folder is for files that arrive after you set it; what is there already is not a capture. A partly written file waits until it stops changing. A symbolic link in the watch folder is never followed or read, because anyone who can write to that folder could point one anywhere. A dropped link is followed, because you chose it.
- Every refusal is listed in the prompt with its reason.
Each capture is stamped with the commit HEAD names. The app does not check
whether your tracked files have uncommitted changes, so it cannot record
that a frame was captured from a dirty tree, and the result carries a warning saying so. Where
that matters, add the evidence with the CLI, which checks it.
The badge
Section titled “The badge”The app shows how many open defects are at your most severe level (blocking
in both profiles). The count follows what you do and what changes on disk. The
tray menu has Open Gantry, Recent and Quit. What each OS shows
for the count:
- macOS: the number on the Dock icon, and a tooltip on the tray icon.
- Windows: a small red mark on the taskbar button (it carries no number) and a tooltip on the tray icon that says how many.
- Linux: the count in the tray icon’s title, and a tooltip where the desktop shows one. There is no Dock badge, and some AppIndicator desktops show no tooltip.
At zero the badge clears.
What the app never does
Section titled “What the app never does”- It runs no process. It reads the repository’s files to find the commit
HEADnames, rather than runninggit, because a checkout’s own config can make git run programs, and opening a project must run nothing of the project’s. - It writes only inside the project’s content directory (the one
gantry.yamlnames), and each write is atomic: a temporary file, then a rename. - It never reads or writes inside
.git, and a path that tries to leave the project, by.., an absolute path or a symbolic link, is refused. - It deletes only generated pages, under
<content>/generated/. - It makes no network request. Its page security policy allows none.
- Its window never leaves the app. It may show only the app’s own pages, so a link out (the docs, the source, a rule’s page, a link in a record) is shown as text naming its URL, for you to open in your browser.
Build it yourself
Section titled “Build it yourself”make desktop-build # builds the bundles for this OS, unsignedIt needs Go, Node (see web/.nvmrc), pnpm and the Rust toolchain the repository
pins; on Linux, the WebKitGTK and AppIndicator development packages. A release
builds each OS’s bundle on a runner of its own: see
Releasing.