The `release: published` trigger does not fire for a release whose draft was created by tauri-action's GITHUB_TOKEN — verified on v0.8.0, which produced zero workflow runs after publishing, so the Homebrew cask was never bumped and the tap stayed empty. Adds `bump_cask` to the workflow_dispatch inputs so the cask bump can be run on demand for any tag, and switches the cask job to RELEASE_TAG (which resolves for both dispatch and release events) instead of GITHUB_REF_NAME. Also stops the cask template's header comment from being rewritten with the substituted version and checksums on every render.
40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
# Homebrew Cask formula for Gridline.
|
|
#
|
|
# This file is the template; `scripts/render-cask.sh` substitutes the version
|
|
# and the per-arch SHA-256 checksums on each release and pushes the rendered
|
|
# file to the `AdrianBonpin/homebrew-gridline` tap as `Casks/gridline.rb`.
|
|
# End users then install with
|
|
#
|
|
# brew install --cask AdrianBonpin/gridline/gridline
|
|
#
|
|
# or — after a one-time `brew tap AdrianBonpin/gridline` — with the short
|
|
#
|
|
# brew install --cask gridline
|
|
#
|
|
# SIGNING: Gridline is Developer-ID signed + notarized, so macOS trusts it
|
|
# and no quarantine-stripping postflight is needed.
|
|
|
|
cask "gridline" do
|
|
arch arm: "aarch64", intel: "x64"
|
|
|
|
version "@VERSION@"
|
|
sha256 arm: "@ARM_SHA256@",
|
|
intel: "@INTEL_SHA256@"
|
|
|
|
url "https://github.com/AdrianBonpin/gridline/releases/download/v#{version}/Gridline_#{version}_#{arch}.dmg"
|
|
name "Gridline"
|
|
desc "Open-source, cross-platform database GUI client for PostgreSQL"
|
|
homepage "https://github.com/AdrianBonpin/gridline"
|
|
|
|
depends_on macos: :monterey
|
|
|
|
app "Gridline.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/com.adrianbonpin.gridline",
|
|
"~/Library/Caches/com.adrianbonpin.gridline",
|
|
"~/Library/Preferences/com.adrianbonpin.gridline.plist",
|
|
"~/Library/Saved Application State/com.adrianbonpin.gridline.savedState",
|
|
"~/Library/WebKit/com.adrianbonpin.gridline",
|
|
]
|
|
end |