rpmbuilder/rpms/xh/resources/build.sh
Ben Vincent 6c468c40d1
All checks were successful
Build / build-8 (pull_request) Successful in 13s
Build / build-9 (pull_request) Successful in 1m22s
chore: add xh rpm
- add xh to list of RPMs to build
2025-12-30 20:44:40 +11:00

14 lines
574 B
Bash
Executable File

#!/usr/bin/bash
set -e
# Download and extract xh
wget -O /app/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl.tar.gz https://github.com/ducaale/xh/releases/download/v${PACKAGE_VERSION}/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl.tar.gz
tar xf /app/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl.tar.gz
mv /app/xh-v${PACKAGE_VERSION}-x86_64-unknown-linux-musl/* /app/
# Process the nfpm.yaml template with environment variables
envsubst < /app/resources/nfpm.yaml > /app/nfpm.yaml
# Build the RPM
nfpm pkg --config /app/nfpm.yaml --target /app/dist --packager rpm