cask/audit: use gktool for signing audit

This commit is contained in:
Bevan Kay 2025-07-24 23:02:06 +10:00
parent dfcecbdf97
commit b7247de7cd
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

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