2015-12-18 09:15:28 +08:00
|
|
|
cask 'qlcolorcode' do
|
2016-04-18 22:57:35 +08:00
|
|
|
version '2.0.7'
|
|
|
|
sha256 '363aac10feaa1353a1acb1181659a7e4859084619218a8ec9abc0cfc01c2c85e'
|
2014-06-27 08:01:38 +08:00
|
|
|
|
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-04-16 09:35:06 +08:00
|
|
|
checkpoint: 'de01b6e253ec929a50c21e36414d29e7d33dd5c90a5416e2a414745902399bc8'
|
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
|
2014-06-27 08:01:38 +08:00
|
|
|
|
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
|