Improve minimum macOS version audit for casks

This commit is contained in:
Rylan Polster 2022-12-27 18:14:46 -05:00
parent ba8e40f249
commit 09a2ccdf24
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -567,6 +567,7 @@ module Cask
return if item.blank?
min_os = item.elements["sparkle:minimumSystemVersion"]&.text
min_os = "11" if min_os == "10.16"
return if min_os.blank?
begin
@ -581,7 +582,8 @@ module Cask
return if cask_min_os == min_os_string
add_error "Upstream defined #{min_os_string} as minimal OS version and the cask defined #{cask_min_os}"
add_error "Upstream defined #{min_os_string.to_sym.inspect} as minimal OS version " \
"and the cask defined #{cask_min_os.to_sym.inspect}"
end
sig { void }