23 lines
828 B
Ruby
23 lines
828 B
Ruby
cask 'qlcolorcode' do
|
|
version '2.0.4'
|
|
sha256 '4b0906b947cb591de9a838281dd989381fc6ab03168d640609444bb2aaacb186'
|
|
|
|
url "https://github.com/anthonygelibert/QLColorCode/releases/download/release-#{version}/QLColorCode.qlgenerator.zip"
|
|
appcast 'https://github.com/anthonygelibert/QLColorCode/releases.atom',
|
|
checkpoint: '2670abb42969f8bd384e7f945e114d93c7cc9bd74423c994af182a8c50210158'
|
|
name 'QLColorCode'
|
|
homepage 'https://github.com/anthonygelibert/QLColorCode'
|
|
license :oss
|
|
|
|
depends_on formula: 'highlight'
|
|
|
|
qlplugin 'QLColorCode.qlgenerator'
|
|
|
|
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'
|
|
end
|