homebrew-cask/Casks/quotefix.rb

24 lines
960 B
Ruby
Raw Normal View History

cask :v1 => 'quotefix' do
version '2.7.0'
sha256 'f3623c6356bc951958cc12808de39a6ba70139f5da3b78ea62277bb11d94f003'
2014-09-26 20:09:09 +08:00
url "https://github.com/robertklep/quotefixformac/releases/download/v#{version}/QuoteFix-v#{version}.zip"
2015-03-15 19:54:49 +08:00
appcast 'https://github.com/robertklep/quotefixformac/releases.atom'
2015-04-23 05:34:22 +08:00
name 'QuoteFix'
homepage 'https://github.com/robertklep/quotefixformac'
2014-10-01 23:33:44 +08:00
license :oss
stage_only true
postflight do
system 'defaults', 'write', 'com.apple.mail', 'EnableBundles', '-bool', 'true'
system 'defaults', 'write', 'com.apple.mail', 'BundleCompatibilityVersion', '-string', '3'
system 'mkdir', '-p', File.expand_path('~/Library/Mail/Bundles')
system 'cp', '-r', File.join(staged_path, 'QuoteFix.mailbundle'), File.expand_path('~/Library/Mail/Bundles')
2013-12-06 09:52:25 +08:00
end
uninstall :delete => File.expand_path('~/Library/Mail/Bundles/QuoteFix.mailbundle')
caveats 'You may need to restart Mail.app before you can use QuoteFix'
2013-12-06 09:52:25 +08:00
end