chore: drop xattr postflight from Homebrew cask template (#17)

This commit was merged in pull request #17.
This commit is contained in:
2026-09-04 02:32:43 +00:00
parent 15f4dc9bac
commit 294e72e6ff
+2 -16
View File
@@ -11,13 +11,8 @@
# #
# brew install --cask gridline # brew install --cask gridline
# #
# QUARANTINE: Gridline is ad-hoc signed (not Developer-ID signed/notarized), # SIGNING: Gridline is Developer-ID signed + notarized, so macOS trusts it
# so Homebrew casks (which deliberately set com.apple.quarantine on the # and no quarantine-stripping postflight is needed.
# downloaded artifact) would make Gatekeeper refuse to launch it. The
# `postflight` block strips the quarantine flag automatically — the standard
# GoReleaser-documented pattern for unsigned casks — so `brew install` works
# with no manual `xattr` step. This is a Gatekeeper bypass; drop the
# postflight once the app is properly signed + notarized.
cask "gridline" do cask "gridline" do
arch arm: "aarch64", intel: "x64" arch arm: "aarch64", intel: "x64"
@@ -35,15 +30,6 @@ cask "gridline" do
app "Gridline.app" app "Gridline.app"
# The "installation step" — strip the quarantine flag so the unsigned
# (ad-hoc signed) app launches without the Gatekeeper prompt.
postflight do
if OS.mac?
system_command "/usr/bin/xattr",
args: ["-dr", "com.apple.quarantine", "#{appdir}/Gridline.app"]
end
end
zap trash: [ zap trash: [
"~/Library/Application Support/com.adrianbonpin.gridline", "~/Library/Application Support/com.adrianbonpin.gridline",
"~/Library/Caches/com.adrianbonpin.gridline", "~/Library/Caches/com.adrianbonpin.gridline",