Skip to main content

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:

ToolWhy
Command Line Tools (not Xcode)compiler and linker
Rust 1.92+ (stable)the workspace's rust-version
Bunscripts and the documentation site
git on the PATHcloning 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​

CommandDoes
bun run devdebug build, launch dist/gCode.app
bun run buildrelease build → dist/gCode.app
bun run checkscript syntax and shell tests, cargo fmt --check, clippy with warnings as errors, tests — run before finishing a change
bun run testshell tests, then cargo test --locked --workspace
bun run benchmarkthe performance suite (see Performance)
bun run updatecargo upgrade --incompatible then cargo update (needs cargo-edit)
bun run releaserequest a release: dispatches the Release workflow for the pushed default branch (needs gh)
bun run iconredraw AppIcon.icns and DevIcon.icns from apps/gcode-desktop/macos/icon.svg (needs Google Chrome)
bun run docs:dev / docs:build / docs:previewthe 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​

PackageKindPurpose
ws-desktopappexecutable entry point; the bundle script copies it in as <name>
ws-productlibthe product's name, read from product.toml
ws-applibstartup, window, key bindings
ws-uilibviews built with GPUI Kit
ws-terminallibPTY, emulation, key and mouse encoding
ws-gitlibrepository summary, diffs, history, branches, merge, sync, creating and cloning projects
ws-storagelibdata directory, projects, preferences, profiles
ws-commitgenlibcommit message generation, commit.json settings
ws-languageliblanguage server client (JavaScript and TypeScript problems)
ws-activitylibthe activity log (kept in memory; shown by the debug button in a bottom panel)
ws-hostinglibGitHub, GitLab and Azure DevOps accounts, repositories and pull requests
ws-versionlibversion comparison for update detection
ws-updaterlibself-update from GitHub releases
ws-extensionsliboptional features installed from packages published in the repository
ws-indexlibproject file index, fuzzy ranking and highlighting of .env, .gitignore and Dockerfiles
ws-visual-checktoolinspect 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.

PathPurpose
scripts/app.shbuild, bundle, sign, launch, check (--dev, [debug|release] --build, --check, --icon)
scripts/release.shrequest a release; in CI: prepare (next version, stamping), notes, package, finalize (assets, checksums)
scripts/notarize-app.shsign with Developer ID and notarize dist/gCode.app (macOS tools, release secrets)
scripts/profile-app.shsample a running gCode's CPU and memory (Performance)
scripts/tests/*.shshell 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.