Docs/Reference
Build from source
Run ZLI from the repository and build your own installers.
ZLI is open source. You can run it from the repository and build your own installers.
Requirements
- Node.js 24.22.1 or a newer 24.x
- pnpm 10.34.9, through Corepack
- Git
Setup
git clone https://github.com/RosMengHeang/ZLI.git && cd ZLI
corepack enable
pnpm --dir v2 install --frozen-lockfile
Commands
Run these from the repository root. They forward to the pnpm workspace in v2/.
| Command | What it does |
|---|---|
npm run dev | Builds and starts the desktop app. |
npm run verify | Checks import boundaries, formatting, lint, unit tests and types. |
npm run build | Builds the desktop app and the renderer. |
npm run desktop:dir | Creates an unpacked app for local testing. |
npm run desktop:pack | Creates an installer for the current platform. |
npm run e2e | Runs the end-to-end tests against the real desktop app. |
On Linux, npm run desktop:pack also builds the .deb and .rpm, which needs rpmbuild (sudo apt install rpm on Debian and Ubuntu).
End-to-end tests
The Playwright tests drive the Electron app and run only when ZLI_RUN_E2E is set.
ZLI_RUN_E2E=1 npm run e2e
In PowerShell, set $env:ZLI_RUN_E2E = "1" first. On Linux without a display, run them under xvfb-run -a.