Setup & commands
Platform
Supported and tested: macOS 15+ on Apple Silicon. Intel, Linux and Windows are unsupported (the plain-Rust crates are also built and
tested on Linux in CI). The minimum system version is LSMinimumSystemVersion in apps/gcode-desktop/macos/Info.plist; scripts/app.sh links
against it.
Requirements:
| Tool | Why |
|---|---|
| Command Line Tools (not Xcode) | compiler and linker |
| Rust 1.92+ (stable) | the workspace's rust-version |
| Bun | scripts and the documentation site |
git on the PATH | cloning and network Git operations run it |
git clone https://github.com/cagatayldzz/vekro.git
cd <repository>
bun install
bun run dev # debug build, launches dist/gCode.app
Commands
| Command | Does |
|---|---|
bun run dev | debug build, launch dist/gCode.app |
bun run build | release build → dist/gCode.app |
bun run check | script syntax and shell tests, cargo fmt --check, clippy with warnings as errors, tests — run before finishing a change |
bun run test | shell tests, then cargo test --locked --workspace |
bun run benchmark | the performance suite (see Performance) |
bun run update | cargo upgrade --incompatible then cargo update (needs cargo-edit) |
bun run release | request a release: dispatches the Release workflow for the pushed default branch (needs gh) |
bun run icon | redraw AppIcon.icns and DevIcon.icns from apps/gcode-desktop/macos/icon.svg (needs Google Chrome) |
bun run docs:dev / docs:build / docs:preview | the documentation site |
A routine change
cargo check --locked -p ws-git # the package you touched
cargo test --locked -p ws-git
cargo fmt --all
bun run check # the whole workspace, no app bundle, no window
These checks run without bundling or opening gCode. Use bun run dev only when you need to look at the interface.
Dependencies
bun run update runs cargo upgrade --incompatible followed by cargo update. Direct Cargo dependencies use full version requirements, so
compatible upgrades can also raise their minimum versions in the manifests. When only indirect dependencies have updates, only Cargo.lock
changes. The Docusaurus dependency is managed separately through Bun.
Packages
| Package | Kind | Purpose |
|---|---|---|
ws-desktop | app | executable entry point; the bundle script copies it in as <name> |
ws-product | lib | the product's name, read from product.toml |
ws-app | lib | startup, window, key bindings |
ws-ui | lib | views built with GPUI Kit |
ws-terminal | lib | PTY, emulation, key and mouse encoding |
ws-git | lib | repository summary, diffs, history, branches, merge, sync, creating and cloning projects |
ws-storage | lib | data directory, projects, preferences, profiles |
ws-commitgen | lib | commit message generation, commit.json settings |
ws-language | lib | language server client (JavaScript and TypeScript problems) |
ws-activity | lib | the activity log (kept in memory; shown by the debug button in a bottom panel) |
ws-hosting | lib | GitHub, GitLab and Azure DevOps accounts, repositories and pull requests |
ws-version | lib | version comparison for update detection |
ws-updater | lib | self-update from GitHub releases |
ws-extensions | lib | optional features installed from packages published in the repository |
ws-index | lib | project file index, fuzzy ranking and highlighting of .env, .gitignore and Dockerfiles |
ws-visual-check | tool | inspect screenshot pixels and map them to window coordinates |
Code map: Architecture → Code map.
Scripts
App and release automation use shell and Rust. The documentation workflow uses Bun and Docusaurus.
| Path | Purpose |
|---|---|
scripts/app.sh | build, bundle, sign, launch, check (--dev, [debug|release] --build, --check, --icon) |
scripts/release.sh | request a release; in CI: prepare (next version, stamping), notes, package, finalize (assets, checksums) |
scripts/notarize-app.sh | sign with Developer ID and notarize dist/gCode.app (macOS tools, release secrets) |
scripts/profile-app.sh | sample a running gCode's CPU and memory (Performance) |
scripts/tests/*.sh | shell tests, run by scripts/tests/run.sh (version, notes, packaging, workflow guarantees) |
Running the app in isolation
Use a scratch data directory so your own project list stays out:
GCODE_DATA_DIR=/tmp/scratch-data ./target/debug/ws-desktop
Seed GCODE_DATA_DIR/projects.json to start with chosen projects (a plain list of paths also loads); see the format in
Persistence.
Formatting
2 spaces, LF, final newline, max_width = 150. rustfmt.toml and .editorconfig hold the rules; run cargo fmt --all. In Rust: one blank line
after imports and between items.