Repository navigation
docs: a build guide for Windows, Linux and macOS - #504
Merged
Merged
Conversation
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
enabled auto-merge (squash)
October 11, 2026 09:22
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 saidpnpm@11, andpackage.jsonpinspnpm@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:corepack enable, which takes the pnpm version frompackage.json;pnpm tauri devandpnpm tauri build, and where each platform's bundles land;--no-bundle, the macOS ad-hoc signature, and the Universal2 build the release uses;tests/building-doc.test.tskeeps the guide honest. Its tests fail when:linux-bundlejob (ci.yml) or the release build (release.yml);node-version:in those workflows;corepack prepare.BUILDINGto 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
Checklist
main; commits follow Conventional Commits.cargo test --manifest-path src-tauri/Cargo.tomlpasses. (No Rust change.)pnpm typecheck,pnpm lint, andpnpm testpass. (Left to CI. Locally onlytests/building-doc.test.tsran: red before the guide existed, green after, and red again under four deliberate mutations of the guide and README.)network::+ the allowlist.process::module.Notes for reviewers
ci.ymlandrelease.ymlinstall and run onubuntu-latestandmacos-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 withrustls, and there is noopenssl-sysinCargo.lock.aws-lc-sysneeds 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 enablesaws-lc-rs/prebuilt-nasm. A Windows machine without NASM builds the project fine.changespath filter inci.ymlskips Vitest for a PR that touches onlyrelease.yml,docs/BUILDING.md,README.md,CHANGELOG.mdordocs/PRINCIPLES.md, even though tests read those files. Drift from aci.ymledit is caught at PR time, sinceci.ymlis 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