2016-08-01 18:00:36 +08:00
|
|
|
cask 'epubmdimporter' do
|
|
|
|
version '1.8'
|
|
|
|
sha256 '740c288a6ad2c98d5c94cf6eccba3ef535faaeda5ad408a897f84d4b324d16e0'
|
|
|
|
|
|
|
|
url "https://github.com/jaketmp/ePub-quicklook/releases/download/v#{version}/epub.mdimporter.zip"
|
2018-06-12 22:37:26 +08:00
|
|
|
appcast 'https://github.com/jaketmp/ePub-quicklook/releases.atom'
|
2016-08-01 18:00:36 +08:00
|
|
|
name 'EPUB Spotlight'
|
|
|
|
homepage 'https://github.com/jaketmp/ePub-quicklook'
|
|
|
|
|
|
|
|
artifact 'epub.mdimporter', target: "#{ENV['HOME']}/Library/Spotlight/AA_epub.mdimporter"
|
|
|
|
|
|
|
|
postflight do
|
2016-11-18 23:51:50 +08:00
|
|
|
system_command '/usr/bin/mdimport', args: ['-r', "#{ENV['HOME']}/Library/Spotlight/AA_epub.mdimporter"]
|
2016-08-01 18:00:36 +08:00
|
|
|
end
|
|
|
|
end
|