From ebb88c6ef3c783f02d78846aaeaac06d5a686830 Mon Sep 17 00:00:00 2001 From: Luis Collymoore Date: Thu, 10 Sep 2026 11:36:22 -0400 Subject: [PATCH] lstk: use postflight_steps instead of deprecated postflight Replaces the legacy `postflight` block with the structured `postflight_steps` stanza, which is now required by Homebrew: - `system_command` + `if OS.mac?` \u2192 `run` step with an `on_macos` guard - Ruby interpolation `#{staged_path}` \u2192 `{{staged_path}}` template token This eliminates the deprecation warning: Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead. All step calls (`run`, `on_macos`) and the `{{staged_path}}` token are permitted in cask `*_steps` blocks. Behavior is unchanged: the quarantine attribute is still removed during installation. --- Casks/lstk.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Casks/lstk.rb b/Casks/lstk.rb index ff1ab5c..0211fcd 100644 --- a/Casks/lstk.rb +++ b/Casks/lstk.rb @@ -36,9 +36,9 @@ fish_completion "completions/lstk.fish" zsh_completion "completions/lstk.zsh" - postflight do - if OS.mac? - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/lstk"] + postflight_steps do + on_macos do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{staged_path}}/lstk"] end end