1.8 KiB
1.8 KiB
ADR 0028: The web folder (./incari build)
- Status: accepted
- Date: 2026-10-01
Context
The goal: incari build writes a web folder and an offline HTML file, on Windows, macOS and
Linux. Until now a build ran only through the localhost dev server.
Every build contains Mojang's code, so the project never publishes one (ADR 0001, 0014). Once the source is public, people will build anyway. They need a supported way to host their own build, and a plain statement, wherever builds are seen, that they mustn't be shared.
Decision
./incari build [--out <dir>] [--only fast|compatible] [--no-sounds](WebBuild) fetches sounds if missing, compiles the release builds, and runs:app-web:webFolder. Default outputdist/web/(ignored). An output git would track is refused.WebFoldercopies only what the page fetches (build files, page, manifest, pack, the jar's resources, sounds) and writes its ownbuild.jsonover exactly those.- It only replaces what it wrote (
.incari-web-foldermarker); a folder with other files is refused. - The notice travels with the build:
README.txtstarts "DO NOT SHARE, UPLOAD OR PUBLISH THIS FOLDER" and explains why;./incari buildprints it;docs/self-hosting.mdis the project's statement. - Server set-up is documented, not required: relative URLs;
.htaccessfor Apache, nginx and Caddy snippets inREADME.txt. Without isolation headers, workers copy instead of sharing; over plain HTTP, no service worker and IndexedDB storage.
(The original --js option went with the JavaScript fallback, ADR 0036.)
Consequences
- A release build replaces the development one in
app-web/build/. - The offline HTML file came later (ADR 0057).
- Via's licensing question (ADR 0002) is unchanged: hosting your own build is easier; publishing one stays forbidden.