Something went wrong. Try again.
An editor for documents (HTML, Markdown, Djot) and data files (JSON, YAML, TOML, figl)
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849#!/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 <version> <sha256 of Flower-<version>-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 <version> <sha256>" >&2 exit 2fiversion="$1"sha256="$2"
cat <<RUBYcask "flower-editor" do version "$version" sha256 "$sha256"
url "https://github.com/diaryx-org/flower/releases/download/v#{version}/Flower-#{version}-aarch64.dmg" name "Flower" desc "Editor for Markdown, Djot and HTML documents and JSON, YAML and TOML data" homepage "https://github.com/diaryx-org/flower"
depends_on arch: :arm64 depends_on macos: :ventura
app "Flower.app"
zap trash: [ "~/Library/Application Support/Flower", "~/Library/Caches/org.diaryx.flower", "~/Library/Logs/Flower", "~/Library/Preferences/org.diaryx.flower.plist", "~/Library/Saved Application State/org.diaryx.flower.savedState", ]endRUBY