scripts

command
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Command build provides build tasks for aeroflare, mirroring the pattern used by github/cli's scripts/build.go: a small Go program that computes version/date metadata and invokes `go build` with the right ldflags, so the same logic runs locally and in CI.

Usage: go run scripts/build.go <task> [--prefix=VALUE]

Known tasks:

build:
  Builds the root aeroflare binary for the host GOOS/GOARCH into
  out/aeroflare.

build-ci:
  Builds the aeroflare-ci binary for the host GOOS/GOARCH into
  out/aeroflare-ci.

build-all:
  Runs build then build-ci.

dist:
  Cross-builds aeroflare for linux/amd64 and linux/arm64 and packages
  each into out/aeroflare-<label>.tar.zst, with the binary at
  bin/aeroflare inside the archive.

dist-ci:
  Same as dist, for aeroflare-ci (out/aeroflare-ci-<label>.tar.zst,
  binary at bin/aeroflare-ci inside the archive).

dist-all:
  Runs dist then dist-ci.

install:
  Builds aeroflare (like build) and copies it to <prefix>/bin/aeroflare.

install-ci:
  Builds aeroflare-ci (like build-ci) and copies it to
  <prefix>/bin/aeroflare-ci.

install-all:
  Runs install then install-ci.

install-release:
  Fetches the aeroflare release tarball from GitHub (no local build)
  and copies the extracted binary to <prefix>/bin/aeroflare.

install-release-ci:
  Same as install-release, for aeroflare-ci.

install-release-all:
  Runs install-release then install-release-ci.

clean:
  Removes out/.

Every build/dist task skips any output that's already newer than all tracked Go source files, printing "<path>: up to date" instead of rebuilding it.

The install* tasks resolve <prefix> as: --prefix=VALUE (or --prefix VALUE) if given, else the PREFIX environment variable, else /usr/local.

Supported environment variables:

  • AEROFLARE_VERSION: overrides the version baked into the binary (build/dist tasks), or pins the release tag to fetch (install-release tasks)
  • AEROFLARE_REPO: GitHub repo to fetch releases from for install-release tasks (default ItzEmoji/aeroflare)
  • PREFIX: install prefix for install* tasks (default /usr/local)
  • SOURCE_DATE_EPOCH: enables reproducible build dates

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL