homebrew-cask/Casks/omnigraffle.rb

23 lines
773 B
Ruby

cask 'omnigraffle' do
if MacOS.version <= :sierra
version '7.8.2'
sha256 'ab463ea6c12d49c4104d3814ac3280d0359072702d4751f5074f644fc79de0c6'
url "https://downloads.omnigroup.com/software/Archive/MacOSX/10.12/OmniGraffle-#{version}.dmg"
else
version '7.11.3'
sha256 '9903a70a0837f7ecba5b9175db9705d8aa83290f5a2307c670aba301470fb108'
url "https://downloads.omnigroup.com/software/MacOSX/10.13/OmniGraffle-#{version}.dmg"
end
appcast "https://update.omnigroup.com/appcast/com.omnigroup.OmniGraffle#{version.major}"
name 'OmniGraffle'
homepage 'https://www.omnigroup.com/omnigraffle/'
auto_updates true
depends_on macos: '>= :sierra'
app 'OmniGraffle.app'
zap trash: '~/Library/Application Support/The Omni Group/OmniGraffle'
end