Files
pulsewise-collector/build.sh
T
Joel Male 35f8ee5347 feat: version/update subcommands, VERSION file, deploy version bumping
- Add VERSION file as canonical version source
- build.sh reads VERSION file automatically, injects via -ldflags
- deploy.sh prompts for major/minor/patch bump, injects version via
  ldflags into all 4 builds, and writes release/latest JSON file
- Add 'pulsewise-collector version' — prints version and checks for update
- Add 'pulsewise-collector update' — fetches and applies the latest release
- Default version changed to "dev" for local builds without ldflags
2026-02-25 14:40:47 +10:00

8 lines
178 B
Bash
Executable File

#!/bin/bash
set -e
VERSION="${VERSION:-$(cat VERSION)}"
go build -ldflags "-X main.version=${VERSION}" -o pulsewise-collector .
echo "Built: pulsewise-collector (v${VERSION})"