Building the desktop app
You don’t need your own build to use the desktop app with your server. The Lyra app works with any Lyra server: it opens Lyra cloud first, and Use a different server in the app menu (⌘⇧O, Ctrl+Shift+O on Windows) takes the address your team opens Lyra at. See Install the desktop app and The desktop app.
Build it yourself when you want an app that opens your server straight away instead of Lyra cloud.
What the app is
Section titled “What the app is”The app is a window onto a Lyra server. It loads the same web app from the same address people open in the browser, so there’s nothing extra to run on the server, and most changes reach the app when you update the server. Only changes to the app itself, like its menus or how it signs in, need a new build.
Lyra app ───────┐ (your computer) │ HTTPS + WebSocket ├──────────────────────▶ your Lyra server (docs.acme.com) Browser ────────┘What you need
Section titled “What you need”-
A copy of Lyra’s code, with Node 24 and pnpm. Run
pnpm installin it once. -
Rust.
-
On Linux, these system libraries:
Terminal window sudo apt install libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev libxdo-dev libssl-dev patchelf
The build makes installers for the kind of computer it runs on, so build the Mac app on a Mac, the Windows app on Windows and the Linux app on Linux.
Build it
Section titled “Build it”| Command | What it does |
|---|---|
make desktop-dev |
Runs the app from source, to try it. Point it at a server you have running |
make desktop-build |
Builds the installers for the computer you’re on, into apps/desktop/src-tauri/target/release/bundle/ |
make desktop-test |
Runs the app’s Rust tests |
make desktop-build also makes update files, which need Lyra’s update key. Without it, build only the installers:
pnpm --filter @lyra/desktop build --config '{"bundle":{"createUpdaterArtifacts":false}}'An app for your own server
Section titled “An app for your own server”Set LYRA_ADDRESS when you build:
LYRA_ADDRESS=https://docs.acme.com pnpm --filter @lyra/desktop build --config '{"bundle":{"createUpdaterArtifacts":false}}'| Setting | What it changes |
|---|---|
LYRA_ADDRESS=https://docs.acme.com |
The app opens that address on first launch instead of Lyra cloud, and looks for updates there. People can still add other servers with ⌘⇧O (Ctrl+Shift+O). If the address ends in .ts.net, the message shown when it can’t be reached asks people to check that Tailscale is connected |
LYRA_CLOUD_ADDRESS=https://lyra.example.com |
Offers another address as Lyra cloud, for testing. The default is https://app.lyra-docs.com |
A build you make yourself isn’t signed with Lyra’s certificates, so macOS and Windows warn people the first time they open it.
Where the server serves downloads from
Section titled “Where the server serves downloads from”Lyra serves desktop app files at /desktop/<file> on your server. With deploy/compose.yml they come from the desktop volume (DESKTOP_RELEASES_DIR), or from a prefix in your S3 bucket with DESKTOP_RELEASES_S3_PREFIX. The server answers download managers that resume a download part of the way through. See Settings.