mirror of
https://github.com/donl/homebrew-cask-versions.git
synced 2026-07-17 06:16:47 -06:00
This cask install the batch version of Prey package, as detailed in: http://support.preyproject.com/kb/installation/how-to-deploy-prey-in-batch-mode-mac-os As it requires an API key to be installed, a warning is displayed to the user with an explanation on how to fix the issue. Also added -E option to sudo invocation so environment variables can be passed to the installer. closes #953 Signed-off-by: phinze <paul.t.hinze@gmail.com>
18 lines
599 B
Ruby
18 lines
599 B
Ruby
class Prey < Cask
|
|
url 'http://preyproject.com/releases/current/prey-0.6.0-mac-batch.mpkg.zip'
|
|
homepage 'https://preyproject.com'
|
|
version '0.6.0'
|
|
sha1 'cb16471070e4c998d6178e7e96284b908c4ad18b'
|
|
install 'prey-0.6.0-mac-batch.mpkg'
|
|
uninstall :pkgutil => 'com.forkhq.prey'
|
|
|
|
def caveats; <<-EOS.undent
|
|
Prey requires an API key to be installed. If None is found, installation will fail.
|
|
To set up your API key, set it as an environment variable during installation like this:
|
|
|
|
brew cask uninstall prey
|
|
API_KEY="abcdef123456" brew cask install prey
|
|
|
|
EOS
|
|
end
|
|
end
|