Skip to main content

SHEET 06 OF 41

/DOC/:SLUG

PART:
03 DOCUMENTATION
CIRCULATION:
PUBLIC
SOURCE:
pages/Doc/[...Slug].astro
AS OF:
2026-12-02

Concise build reference for Land from source - prerequisites, two-step build flow, common profiles, and development environment setup.

/Guide

Quickstart

Concise build reference for Land from source - prerequisites, two-step build flow, common profiles, and development environment setup.

PUBLISHED GUIDE Source/Content/doc/quickstart.md UNAVAILABLE UNAVAILABLE PROCEDURE 2

A minimal build reference for developers who already know their way around the repository and just need the commands. It assumes the Land repository and its element submodules are already cloned on their Current branches - the clone itself is Installation’s job.


The Path 🧭

Four actions, in this order.

  1. Install the tools - rustup, Node.js 24, pnpm, and the two skip flags.
  2. Compile the VS Code Editor submodule - npm inside the Editor directory.
  3. Build the Land application - one Build.sh --profile <name> call.
  4. Run it - launch the binary, or use the hot-reloading launcher.

What you should see: the build writes the binary and the .app bundle under Element/Mountain/Target/debug/, and the launched editor opens with the workbench rendered. A blank workbench means the extension host did not connect - see Installation for the port checks.


Prerequisites

# Install tools
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
nvm install 24 && nvm use 24
npm install -g pnpm

# Skip large test binaries (not needed for compilation)
echo 'export ELECTRON_SKIP_BINARY_DOWNLOAD=1' >> ~/.zshrc
echo 'export PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1' >> ~/.zshrc
source ~/.zshrc

Step 1: Compile VS Code Source

Run this inside the Editor submodule, from the repository root. The submodule is a fork checkout with its own remotes; Parent is the upstream remote the build expects.

cd Dependency/Microsoft/Dependency/Editor
nvm use 24
export NODE_ENV=development
git fetch --all
git reset --hard Parent/main
git clean -dfx
npm install
npm run compile
npm run compile-extensions-build
cd ../../..

Warning

git reset --hard Parent/main discards every local commit on the submodule’s checked-out branch, and git clean -dfx deletes every untracked file in the submodule - patches, scratch scripts, local build hacks. Both are correct for a disposable compile checkout and destructive on one you have edited. If you have work in the Editor submodule, skip those two lines and read Getting Started for the guarded path.

The Editor submodule uses npm, not pnpm.


Step 2: Build Land Application

From the repository root:

./Maintain/Debug/Build.sh --profile debug-mountain  # fast, 80-90% coverage
./Maintain/Debug/Build.sh --profile debug-electron  # full feature set

What you should see: Build.sh finishing and the artifacts landing under Element/Mountain/Target/debug/. On macOS the debug bundle is re-signed as part of the same run, so a signing failure surfaces here rather than at launch.

Common Profiles

Profile When to use
debug-mountain Daily development (fastest viable build)
debug-electron Full feature set, Electron workbench
debug-electron-bundled Bundled Vite/Astro workbench debug build
debug-kernel Pure Mountain, no Cocoon, no UI
release-electron-bundled Release build - on Maintain/Release/Build.sh, not the debug script

A profile name is valid only on the script that declares it: the debug-* names belong to Maintain/Debug/Build.sh, and production, web-browser and the release-* names belong to Maintain/Release/Build.sh. The full list of each is in Installation.


Run After Build

# Launch the binary directly
./Element/Mountain/Target/debug/Mountain

# Or start a hot-reloading development session (Build.sh has no --run flag)
./Maintain/Debug/Run.sh --profile debug-mountain

Quick Troubleshooting

Symptom Fix
npm install stalls Set ELECTRON_SKIP_BINARY_DOWNLOAD=1 and PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
Playwright lockfile error rm -rf ~/Library/Caches/ms-playwright/__dirlock
App crashes on macOS Run BundleLevel=debug sh Maintain/Script/SignBundle.sh
Compilation errors in Editor git clean -dfx && rm -rf node_modules && npm install && npm run compile

Further Reading

Guide, 6 PAGES, page 2 of 6

THE LAYER'S INDEX

NEXT: /BLOG 04 BLOG

NOTES FROM THE BUILD, NEWEST FIRST

〈06〉 /DOC/:SLUG 41 SHEETS AS OF: 2026-12-02