@@ -768,13 +768,15 @@ def audit_livecheck_version
768
768
sig { void }
769
769
def audit_min_os
770
770
return unless online?
771
- return unless strict?
772
771
773
772
odebug "Auditing minimum macOS version"
774
773
775
774
bundle_min_os = cask_bundle_min_os
776
775
sparkle_min_os = cask_sparkle_min_os
777
776
777
+ puts "Bundle min os:" , bundle_min_os
778
+ puts "Sparkle min os:" , sparkle_min_os
779
+
778
780
app_min_os = [ bundle_min_os , sparkle_min_os ] . compact . max
779
781
debug_messages = [ ]
780
782
debug_messages << "from artifact: #{ bundle_min_os . to_sym } " if bundle_min_os
@@ -786,6 +788,8 @@ def audit_min_os
786
788
depends_on_min_os = cask . depends_on . macos &.minimum_version
787
789
788
790
cask_min_os = [ on_system_block_min_os , depends_on_min_os ] . compact . max
791
+ puts "Cask min os:" , cask_min_os
792
+ puts "App min os:" , app_min_os
789
793
debug_messages = [ ]
790
794
debug_messages << "from on_system block: #{ on_system_block_min_os . to_sym } " if on_system_block_min_os
791
795
if depends_on_min_os > HOMEBREW_MACOS_OLDEST_ALLOWED
@@ -811,8 +815,7 @@ def audit_min_os
811
815
end
812
816
source = T . must ( bundle_min_os . to_s <=> sparkle_min_os . to_s ) . positive? ? "Artifact" : "Upstream"
813
817
add_error "#{ source } defined #{ app_min_os . to_sym . inspect } as the minimum macOS version " \
814
- "but the cask declared #{ min_os_definition } " ,
815
- strict_only : true
818
+ "but the cask declared #{ min_os_definition } "
816
819
end
817
820
818
821
sig { returns ( T . nilable ( MacOSVersion ) ) }
0 commit comments