mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-11-29 17:21:13 +01:00
Substring version checks admitted stale agents and dependency literals, while ARMv6 executables could select ARMv7 updates. Share compiler target and exact release identity admission across producers, downloads and activation, and keep validated local downloads bound to their open file descriptor. Cover bounded runtime probes, failure atomicity, canonical executable formats, ARM emulation and saved-state installer repair boundaries. Retain the installed ARM fleet and physical-device gap, and leave release qualification open.
13 lines
533 B
Bash
Executable File
13 lines
533 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
source ./scripts/release_build_targets.sh
|
|
version="$(tr -d '\r\n' < VERSION)"
|
|
ldflags="$(./scripts/release_ldflags.sh agent --version "$version")"
|
|
mkdir -p bin
|
|
for target in "${PULSE_RELEASE_AGENT_TARGETS[@]}"; do
|
|
read -r -a target_env <<< "$(pulse_release_target_env "$target")"
|
|
env CGO_ENABLED=0 "${target_env[@]}" go build -trimpath -buildvcs=false \
|
|
-ldflags="$ldflags" -o "bin/$(pulse_release_binary_filename agent "$target")" ./cmd/pulse-agent
|
|
done
|