mirror of
https://github.com/block/buzz.git
synced 2026-11-11 20:01:09 +00:00
Signed-off-by: Wes <wesbillman@users.noreply.github.com> Co-authored-by: Pinky <44b8e82baa6e0e254e0208d68f335c283c94e7b78dd1fa10d5a49d3f13dd0435@sprout-oss.stage.blox.sqprod.co>
22 lines
684 B
Bash
Executable File
22 lines
684 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
if [[ $# -lt 3 ]]; then
|
|
echo "Usage: generate-oss-latest-json.sh <version> <sig-file> <archive-url>" >&2
|
|
exit 1
|
|
fi
|
|
|
|
VERSION="$1"
|
|
SIG_FILE="$2"
|
|
ARCHIVE_URL="$3"
|
|
|
|
# Only darwin-aarch64 is included because the workflow builds on ARM64 runners
|
|
# only. Supporting Intel Macs (darwin-x86_64) would require a matrix build.
|
|
jq -n \
|
|
--arg version "$VERSION" \
|
|
--arg notes "Buzz v$VERSION" \
|
|
--arg pub_date "$(date -u +%Y-%m-%dT%H:%M:%SZ)" \
|
|
--arg signature "$(cat "$SIG_FILE")" \
|
|
--arg url "$ARCHIVE_URL" \
|
|
'{ version: $version, notes: $notes, pub_date: $pub_date, platforms: { "darwin-aarch64": { signature: $signature, url: $url } } }'
|