#!/usr/bin/env bash # # Print the Homebrew cask for Flower.app — `Casks/flower-editor.rb` in # diaryx-org/homebrew-tap — for one release: # # scripts/render-cask.sh -aarch64.dmg> # # mac-app.yml runs this on a release tag and pushes the result to the tap; the # tap is written by CI and by nothing else. It is a script rather than a # heredoc in the workflow so that the cask can be rendered and `brew audit`ed # on a Mac before a tag depends on it. # # `flower-editor`, not `flower`: the tap's `flower` is the terminal editor's formula, # and a cask of the same name would leave `brew install diaryx-org/tap/flower` # meaning the formula and the app needing `--cask` to be reached at all. set -euo pipefail if [ $# -ne 2 ]; then echo "usage: $0 " >&2 exit 2 fi version="$1" sha256="$2" cat <