Merge pull request #7652 from gibfahn/cask_caveat_unsigned_accessibility

caveats: add an unsigned_accessibility caveat message
This commit is contained in:
Mike McQuaid 2020-05-27 10:01:27 +01:00 committed by GitHub
commit d9dc809c9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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