Skip to main content

Build

Dash Frontend

cd web
bun install
bun run build

The frontend build writes static assets consumed by the Dash release package.

Dash Backend

go build ./cmd/dash

Dash Release Package

bash scripts/package.sh \
--version 1.2.3 \
--node-version 1.2.3 \
-o release \
-t linux/amd64 \
--tar-gz

Common options:

OptionDescription
-o OUT_DIROutput directory, default release
--version VERSIONInject Dash version
--use-git-tagUse the unique tag on the current commit as version
--node-version VERSIONBundled Ithiltir-node version
--node-localUse locally built node assets
--releaseRelease mode, requires --use-git-tag

Dash release packages currently target Linux amd64 and Linux arm64. macOS and Windows deploy assets are for nodes.

PowerShell package script:

.\scripts\package.ps1 -Version 1.2.3 -NodeVersion 1.2.3 -OutDir release -Target linux/amd64 -TarGz

Ithiltir-node

Build config is in .goreleaser.yaml.

Local snapshot build:

./scripts/build.sh

Release build:

./scripts/build.sh --use-git-tag --release

Windows:

.\scripts\build.ps1 -UseGitTag -Release

The script installs GoReleaser v2.15.2 when missing.

Docs

npm install
npm run build

Docs build does not require tests first. Code changes should add tests when they affect public contracts, state machines, error paths, concurrency, serialization, or historical bug areas.