mirror of
https://github.com/Homebrew/brew.git
synced 2026-10-28 09:34:42 +08:00
Merge pull request #20307 from Homebrew/signing-change
cask/audit: skip signing audit without gktool
This commit is contained in:
1 file changed
+3
-5
@@ -510,11 +510,9 @@ module Cask
|
||||
when Artifact::Pkg
|
||||
system_command("spctl", args: ["--assess", "--type", "install", path], print_stderr: false)
|
||||
when Artifact::App
|
||||
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
|
||||
next opoo "gktool not found, skipping app signing audit" unless which("gktool")
|
||||
|
||||
system_command("gktool", args: ["scan", path], print_stderr: false)
|
||||
when Artifact::Binary
|
||||
# Shell scripts cannot be signed, so we skip them
|
||||
next if path.text_executable?
|
||||
|
||||
Reference in new issue
Block a user