diff --git a/Library/Homebrew/cask/dsl/caveats.rb b/Library/Homebrew/cask/dsl/caveats.rb index 035c1d6a3b..b6105915e4 100644 --- a/Library/Homebrew/cask/dsl/caveats.rb +++ b/Library/Homebrew/cask/dsl/caveats.rb @@ -58,6 +58,19 @@ module Cask EOS end + caveat :unsigned_accessibility do |access = "Accessibility"| + # access: the category in System Preferences -> Security & Privacy -> Privacy the app requires. + + <<~EOS + #{@cask} is not signed and requires Accessibility access, + so you will need to re-grant Accessibility access every time the app is updated. + + Enable or re-enable it in: + System Preferences → Security & Privacy → Privacy -> #{access} + To re-enable untick and retick #{@cask}.app. + EOS + end + caveat :path_environment_variable do |path| <<~EOS To use #{@cask}, you may need to add the #{path} directory