# Local Build ## Frontend Build ```bash cd frontend npm install npm run build ``` Build output is written to `frontend/dist`. ## Backend Build ```bash cd backend go test ./... go build -o ../build/clicd . ``` To package the embedded web panel, sync the frontend build output into the backend embed directory first. ## One-command Build The project root provides a build script: ```bash bash build.sh ``` The script chains frontend build, static asset sync, and Go binary build. The default target is Linux amd64. To build an ARM64 package, set: ```bash CLICD_GOARCH=arm64 bash build.sh ``` To build both amd64 and arm64 release assets at once: ```bash CLICD_GOARCH=all bash build.sh ``` The build writes: - `dist/clicd-linux-amd64` - `dist/clicd-linux-amd64.tar.gz` - `dist/clicd-linux-arm64` - `dist/clicd-linux-arm64.tar.gz` ## Docs Build ```bash cd docs npm install npm run dev npm run build ``` `npm run dev` starts a local preview, and `npm run build` generates static documentation.