homebrew-cask/Casks/qlcolorcode.rb

23 lines
828 B
Ruby
Raw Normal View History

2015-12-18 09:15:28 +08:00
cask 'qlcolorcode' do
2016-01-18 10:43:57 +08:00
version '2.0.4'
2016-01-19 21:05:24 +08:00
sha256 '4b0906b947cb591de9a838281dd989381fc6ab03168d640609444bb2aaacb186'
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-01-19 21:05:24 +08:00
checkpoint: '2670abb42969f8bd384e7f945e114d93c7cc9bd74423c994af182a8c50210158'
2015-01-05 03:54:50 +08:00
name 'QLColorCode'
2016-01-18 10:43:57 +08:00
homepage 'https://github.com/anthonygelibert/QLColorCode'
2014-10-01 23:33:42 +08:00
license :oss
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
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
zap trash: '~/Library/Preferences/org.n8gray.QLColorCode.plist'
2013-11-15 12:06:58 +08:00
end