homebrew-cask/Casks/qlmarkdown.rb

18 lines
703 B
Ruby
Raw Normal View History

2013-11-15 12:07:13 +08:00
class Qlmarkdown < Cask
version '1.3.3'
sha256 '045712562665673924397bbbef1ee1157b44e23c9744feda6feda27e107802d3'
2014-09-26 20:09:08 +08:00
url "https://github.com/toland/qlmarkdown/releases/download/v#{version}/QLMarkdown.qlgenerator.zip"
homepage 'https://github.com/toland/qlmarkdown'
# Fix broken zip file with no toplevel bundle directory. This was
# not needed for version 1.3.2. We could add an option to the main
# DSL to identify such containers and generate a target directory.
container_type :naked
2014-09-09 20:55:28 +08:00
preflight do
system '/usr/bin/ditto', '-xk', '--', "#{destination_path}/QLMarkdown.qlgenerator.zip", "#{destination_path}/QLMarkdown.qlgenerator"
end
2014-05-12 13:00:13 +08:00
qlplugin 'QLMarkdown.qlgenerator'
2013-11-15 12:07:13 +08:00
end