#!/usr/bin/env bash # render-homebrew.sh : writes Formula opencode-v2.rb with the # hashes of the signed macOS and the Linux archives. . "$(dirname "$0")/lib.sh" macos=$1 archives=$2 tap=$3 sum() { sha256 "$1" | cut -c1-64; } base="https://opencode.ai/files/bin/$OPENCODE_VERSION" cat > "$tap/opencode-v2.rb" <