homebrew-cask/Casks/do-not-disturb.rb

25 lines
1005 B
Ruby

cask 'do-not-disturb' do
version '1.3.0'
sha256 '000e3ce8f5abd1313bbb603c401a1be0b5cf4f11644d36f1d5d382745079fdc3'
# bitbucket.org/objective-see/ was verified as official when first introduced to the cask
url "https://bitbucket.org/objective-see/deploy/downloads/DoNotDisturb_#{version}.zip"
appcast 'https://objective-see.com/products/changelogs/DoNotDisturb.txt'
name 'Do Not Disturb'
homepage 'https://objective-see.com/products/dnd.html'
depends_on macos: '>= :sierra'
installer script: {
executable: "#{staged_path}/Do Not Disturb Installer.app/Contents/MacOS/Do Not Disturb Installer",
args: ['-install'],
sudo: true,
}
uninstall script: {
executable: "#{staged_path}/Do Not Disturb Installer.app/Contents/MacOS/Do Not Disturb Installer",
args: ['-uninstall'],
sudo: true,
}
end