Merge pull request #20303 from Homebrew/signing-audit

cask/audit: use `gktool` for signing audit
This commit is contained in:
Patrick Linnane 2025-07-24 17:02:05 +00:00 committed by GitHub
commit a190b1fd42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -510,8 +510,8 @@ module Cask
when Artifact::Pkg
system_command("spctl", args: ["--assess", "--type", "install", path], print_stderr: false)
when Artifact::App
if which("syspolicy_check")
system_command("syspolicy_check", args: ["distribution", path], print_stderr: false)
if which("gktool")
system_command("gktool", args: ["scan", path], print_stderr: false)
else
system_command("spctl", args: ["--assess", "--type", "execute", path], print_stderr: false)
end