Merge pull request #15264 from vitorgalvao/patch-1

Cask audit: check binary signature and notarisation
This commit is contained in:
Mike McQuaid 2023-04-21 07:52:11 +01:00 committed by GitHub
commit f2d064b8ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -460,7 +460,9 @@ module Cask
return if !signing? || download.blank? || cask.url.blank?
odebug "Auditing signing"
artifacts = cask.artifacts.select { |k| k.is_a?(Artifact::Pkg) || k.is_a?(Artifact::App) }
artifacts = cask.artifacts.select do |k|
k.is_a?(Artifact::Pkg) || k.is_a?(Artifact::App) || k.is_a?(Artifact::Binary)
end
return if artifacts.empty?

View File

@ -483,7 +483,7 @@ describe Cask::Audit, :cask do
cask 'signing-cask-test' do
version '1.0'
url "https://brew.sh/index.html"
binary 'Audit.app'
artifact "example.pdf", target: "/Library/Application Support/example"
end
RUBY
end