From 06e3b125bb028cb2f21e58c032f565262c4dd609 Mon Sep 17 00:00:00 2001 From: Xin Date: Tue, 15 Sep 2026 00:30:50 +0100 Subject: [PATCH] fix(release): drop deprecated Homebrew cask syntax in tap template Homebrew now warns on the generated cask: - the `verified:` parameter in the `url` stanza is deprecated in favor of the default URL verification behaviour; the release URLs share the homepage domain, so it can simply be removed - `postflight` blocks are deprecated in favor of `postflight_steps`, using the new install-steps DSL (`run` with the `{{staged_path}}` template token, guarded by `on_macos`) The tap casks were already patched directly in imfing/homebrew-tap; this keeps future releases from regenerating the deprecated syntax. --- .github/workflows/release.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c324e5c..f60b783 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -213,26 +213,22 @@ jobs: on_macos do on_arm do sha256 "${sha_darwin_arm}" - url "https://github.com/imfing/diffs-cli/releases/download/v#{version}/diffs-aarch64-apple-darwin.tar.gz", - verified: "github.com/imfing/diffs-cli/" + url "https://github.com/imfing/diffs-cli/releases/download/v#{version}/diffs-aarch64-apple-darwin.tar.gz" end on_intel do sha256 "${sha_darwin_intel}" - url "https://github.com/imfing/diffs-cli/releases/download/v#{version}/diffs-x86_64-apple-darwin.tar.gz", - verified: "github.com/imfing/diffs-cli/" + url "https://github.com/imfing/diffs-cli/releases/download/v#{version}/diffs-x86_64-apple-darwin.tar.gz" end end on_linux do on_arm do sha256 "${sha_linux_arm}" - url "https://github.com/imfing/diffs-cli/releases/download/v#{version}/diffs-aarch64-unknown-linux-gnu.tar.gz", - verified: "github.com/imfing/diffs-cli/" + url "https://github.com/imfing/diffs-cli/releases/download/v#{version}/diffs-aarch64-unknown-linux-gnu.tar.gz" end on_intel do sha256 "${sha_linux_intel}" - url "https://github.com/imfing/diffs-cli/releases/download/v#{version}/diffs-x86_64-unknown-linux-gnu.tar.gz", - verified: "github.com/imfing/diffs-cli/" + url "https://github.com/imfing/diffs-cli/releases/download/v#{version}/diffs-x86_64-unknown-linux-gnu.tar.gz" end end @@ -242,10 +238,9 @@ jobs: binary "diffs" - postflight do - if OS.mac? - system_command "/usr/bin/xattr", - args: ["-dr", "com.apple.quarantine", "#{staged_path}/diffs"] + postflight_steps do + on_macos do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/diffs"] end end end