ci/woodpecker/push/config Pipeline was successful
ci/woodpecker/push/hledger Pipeline was successful
ci/woodpecker/push/jobs Pipeline was successful
ci/woodpecker/push/snapshots Pipeline was successful
ci/woodpecker/push/web Pipeline was successful
ci/woodpecker/push/worker Pipeline was successful
Add source-mounted development and compiled preview Compose workflows, pruned app images, and a checksum-verified BusyBox-compatible hledger installer. Add per-app and per-package GitHub/Woodpecker pipelines, a hydrated query browser smoke test, production package file lists, and local workflow documentation. Keep pending snapshot and application-lifecycle changes out of this commit.
28 lines
1.1 KiB
Bash
28 lines
1.1 KiB
Bash
#!/bin/sh
|
|
# Shared by the worker image and Woodpecker. Install only the pinned CLI,
|
|
# never hledger-ui/web, a distro fallback, or an unverified latest release.
|
|
set -eu
|
|
|
|
case "$(uname -s):$(uname -m)" in
|
|
Linux:x86_64) ;;
|
|
*) echo 'hledger 1.99.5 installation currently requires Linux x86_64.' >&2; exit 1 ;;
|
|
esac
|
|
|
|
destination=${1:?Usage: sh tools/install-hledger.sh <bin-directory>}
|
|
temporary=$(mktemp -d)
|
|
trap 'rm -rf "$temporary"' EXIT HUP INT TERM
|
|
|
|
archive="$temporary/hledger.tar.gz"
|
|
curl --disable --fail --location --silent --show-error --retry 3 --proto '=https' \
|
|
https://github.com/hledgerorg/hledger/releases/download/1.99.5/hledger-linux-x64.tar.gz \
|
|
--output "$archive"
|
|
# Digest published with the upstream 1.99.5 release asset.
|
|
# Use -c: both GNU and Alpine's BusyBox support this spelling.
|
|
printf '%s %s\n' 62f4ceb82239f63e88a88a785faa9a23c61d9d611def7c0fed19140a5f5cdbf6 "$archive" | sha256sum -c
|
|
|
|
tar -xzf "$archive" -C "$temporary"
|
|
mkdir -p "$destination"
|
|
cp "$temporary/hledger" "$destination/hledger"
|
|
chmod 0755 "$destination/hledger"
|
|
"$destination/hledger" --version
|