Fix codesign audit paths.

This commit is contained in:
Markus Reiter 2023-04-12 19:57:35 +02:00
parent 8c69c95417
commit 19939ac276
No known key found for this signature in database
GPG Key ID: 245293B51702655B

View File

@ -476,7 +476,7 @@ module Cask
artifacts.each do |artifact| artifacts.each do |artifact|
case artifact case artifact
when Artifact::Moved when Artifact::Moved
path = tmpdir/artifact.source.basename path = tmpdir/artifact.source.relative_path_from(cask.staged_path)
next unless path.exist? next unless path.exist?
result = system_command("codesign", args: ["--verify", path], print_stderr: false) result = system_command("codesign", args: ["--verify", path], print_stderr: false)
@ -498,7 +498,7 @@ module Cask
add_error(message, strict_only: true) add_error(message, strict_only: true)
when Artifact::Pkg when Artifact::Pkg
path = downloaded_path path = tmpdir/artifact.path.relative_path_from(cask.staged_path)
next unless path.exist? next unless path.exist?
result = system_command("pkgutil", args: ["--check-signature", path], print_stderr: false) result = system_command("pkgutil", args: ["--check-signature", path], print_stderr: false)