homebrew-cask/Casks/qlcolorcode.rb

22 lines
813 B
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'qlcolorcode' do
2016-10-05 16:28:59 +08:00
version '2.0.8'
sha256 '598da4c881750943687b846a01a72cbaa2a91054db71d34bb4e7c8ffe4be9ac5'
2016-01-19 21:05:24 +08:00
url "https://github.com/anthonygelibert/QLColorCode/releases/download/release-#{version}/QLColorCode.qlgenerator.zip"
2016-01-18 10:43:57 +08:00
appcast 'https://github.com/anthonygelibert/QLColorCode/releases.atom',
2016-10-05 16:28:59 +08:00
checkpoint: '8292b9376d20a419a53be5e87c18da0560c7f5c302a2d47e64d76879b883be1d'
2015-01-05 03:54:50 +08:00
name 'QLColorCode'
2016-01-18 10:43:57 +08:00
homepage 'https://github.com/anthonygelibert/QLColorCode'
2016-01-19 21:05:24 +08:00
depends_on formula: 'highlight'
2016-01-18 10:43:57 +08:00
qlplugin 'QLColorCode.qlgenerator'
2016-01-19 21:05:24 +08:00
2016-04-16 09:35:06 +08:00
postflight do
# This sets the path to the highlight binary to the preferred one found in $PATH.
system 'defaults write org.n8gray.QLColorCode pathHL "$(which highlight)"'
end
2016-01-19 21:05:24 +08:00
zap trash: '~/Library/Preferences/org.n8gray.QLColorCode.plist'
2013-11-15 12:06:58 +08:00
end