#!/usr/bin/env bash set -euo pipefail version=2.44.1 destination="${1:-${TMPDIR:-/tmp}/yuvomi-xcodegen}" mkdir -p "$destination" curl --fail --location "https://github.com/yonaskolb/XcodeGen/releases/download/$version/xcodegen.zip" -o "$destination/xcodegen.zip" printf '%s %s\n' a2e905fb68446e9bb4008cdfe2e13e3f176d0cbcca828b71770f8e53fca91b73 "$destination/xcodegen.zip" | shasum -a 256 -c - unzip -qo "$destination/xcodegen.zip" -d "$destination" "$destination/xcodegen/bin/xcodegen" --version