From 2c9cb65c0ed5c8d6641fcaff86087fd06ba31f60 Mon Sep 17 00:00:00 2001 From: Samgu Lee Date: Mon, 28 Sep 2026 01:45:27 +0900 Subject: [PATCH] fix: update homebrew cask hooks to use custom_block for macOS postflight steps --- .goreleaser.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 988c8e1..f2eccfe 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -42,12 +42,12 @@ homebrew_casks: homepage: "https://github.com/replworks/{{ .ProjectName }}" description: "A deterministic runtime controller for external AI-driven task execution." - hooks: - post: - install: | - if OS.mac? - system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/repl-cli"] - end + custom_block: | + on_macos do + postflight_steps do + run "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "{{ "{{" }}staged_path{{ "}}" }}/repl-cli"] + end + end checksum: name_template: "checksums.txt"