Skip to content

docs: a build guide for Windows, Linux and macOS - #504

Merged
AntonBabchenko merged 3 commits into
mainfrom
docs/build-guide-all-platforms
Oct 11, 2026
Merged

AntonBabchenko merged 3 commits into
mainfrom
docs/build-guide-all-platforms

Conversation

@AntonBabchenko

@AntonBabchenko AntonBabchenko commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

What this changes

A user asked for a guide on compiling Lucerna from source. README "Build from source" and CONTRIBUTING "Development setup" listed only Windows prerequisites, although Linux and macOS ship beta builds that CI compiles and bundles. The two lists had also drifted apart: README said corepack prepare pnpm@latest, CONTRIBUTING said pnpm@11, and package.json pins pnpm@11.1.1. README's build comment still promised "installer + portable", left over from v0.1.0.

  • docs/BUILDING.md (new) is now the only place with build instructions. It covers:
    • prerequisites on every platform: Rust via rustup, Node.js 24, and corepack enable, which takes the pnpm version from package.json;
    • Windows: MSVC Build Tools and WebView2;
    • Linux: the exact apt list CI installs, plus the Secret Service needed at run time;
    • macOS: Xcode Command Line Tools;
    • pnpm tauri dev and pnpm tauri build, and where each platform's bundles land;
    • --no-bundle, the macOS ad-hoc signature, and the Universal2 build the release uses;
    • the compile-time variables. A self-built binary has no CurseForge key, so it asks for a personal one.
  • README / CONTRIBUTING keep the clone-and-run commands and link to the guide. README's Install section points at "Build from source", because the user who asked had missed it.
  • tests/building-doc.test.ts keeps the guide honest. Its tests fail when:
    • the guide's apt package set differs from the linux-bundle job (ci.yml) or the release build (release.yml);
    • its bold Node.js major differs from any node-version: in those workflows;
    • README or CONTRIBUTING stop linking to the guide;
    • any of the three files pins pnpm through corepack prepare.
  • CLAUDE.md / AGENTS.md add BUILDING to the public docs row.

No CHANGELOG entry. The in-app changelog describes the launcher, and earlier docs-only PRs (#285, #396, #482) added none.

Related issue

None. The request came from user feedback.

Type

  • docs
  • test

Checklist

  • Branch is off main; commits follow Conventional Commits.
  • cargo test --manifest-path src-tauri/Cargo.toml passes. (No Rust change.)
  • pnpm typecheck, pnpm lint, and pnpm test pass. (Left to CI. Locally only tests/building-doc.test.ts ran: red before the guide existed, green after, and red again under four deliberate mutations of the guide and README.)
  • No new outbound host except through network:: + the allowlist.
  • No new subprocess except through the process:: module.
  • No telemetry / analytics / client modification introduced.
  • No new dependency.

Notes for reviewers

  • I did not build on Linux or macOS by hand. The Linux and macOS steps are what ci.yml and release.yml install and run on ubuntu-latest and macos-latest, checked against Tauri v2's prerequisites page. The guide departs from Tauri's page in one place. It drops the OpenSSL dev package: reqwest is built with rustls, and there is no openssl-sys in Cargo.lock.
  • No CMake or NASM. The review asked whether aws-lc-sys needs extra Windows tools. Per the aws-lc-rs requirements pages, CMake is needed only for FIPS builds, on all three OSes. NASM is replaced by prebuilt objects, because rustls enables aws-lc-rs/prebuilt-nasm. A Windows machine without NASM builds the project fine.
  • Known gap, not fixed here. The changes path filter in ci.yml skips Vitest for a PR that touches only release.yml, docs/BUILDING.md, README.md, CHANGELOG.md or docs/PRINCIPLES.md, even though tests read those files. Drift from a ci.yml edit is caught at PR time, since ci.yml is in the filter. Drift from a release.yml-only or doc-only edit shows up only on the push to main. Widening the filter as it stands would also start the bundle smoke builds for every docs PR, so this is logged as a follow-up.

🤖 Generated with Claude Code

AntonBabchenko and others added 2 commits October 11, 2026 11:09
README "Build from source" and CONTRIBUTING "Development setup" listed
Windows prerequisites only, although Linux and macOS ship beta builds that
CI compiles and bundles. The two lists had also drifted apart: README said
`corepack prepare pnpm@latest`, CONTRIBUTING `pnpm@11`, while package.json
pins pnpm@11.1.1. README's `pnpm tauri build` comment still promised
"installer + portable" from v0.1.0; a Windows build emits the NSIS
installer only.

docs/BUILDING.md is now the one place for build instructions: prerequisites
per platform, running in development, release bundles and where they land,
the macOS ad-hoc signature and Universal2 build the release uses, and the
compile-time variables (a build without LUCERNA_CURSEFORGE_API_KEY asks for
a personal CurseForge key). The Linux package list and the Node version are
the ones the CI and release workflows install; Linux and macOS facts come
from those workflows, cross-checked with Tauri v2's prerequisites page.
`corepack enable` leaves the pnpm version to package.json, so no doc names
one any more. README and CONTRIBUTING keep the clone-and-run commands and
link to the guide; README's Install section points at it too.

tests/building-doc.test.ts keeps the guide honest: its apt package set must
equal the linux-bundle job's and the release build's, its Node major must
equal every node-version in both workflows, README and CONTRIBUTING must
link to it, and none of the three may pin pnpm through corepack prepare.

CLAUDE.md and AGENTS.md list BUILDING among the public docs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A dev build's About always says "Development build"; the build-identity
  variables only matter for a release build, and About validates them.
- Leave the variables unset, not empty (an empty LUCERNA_MS_CLIENT_ID
  compiles in an empty client id); show bash and PowerShell syntax.
- Linux: secrets live in the Secret Service, so a provider must run.
- `rustup update` for an old stable; the dev server's port 1420 is fixed;
  Tauri's macOS prerequisites link; the intro says which facts come from
  the workflows and which from Tauri's prerequisites.
- The Node check matched "Node.js 25" in the guide's own Corepack note, so
  a CI move to Node 25 would have stayed green. It now matches the bold
  requirement and reports the differing majors on failure.
- README's test-command fence is `sh`: the commands are cross-platform.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AntonBabchenko
AntonBabchenko enabled auto-merge (squash) October 11, 2026 09:22
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AntonBabchenko
AntonBabchenko merged commit 771e412 into main Oct 11, 2026
12 checks passed
@AntonBabchenko
AntonBabchenko deleted the docs/build-guide-all-platforms branch October 11, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant