2015-12-18 09:15:28 +08:00
|
|
|
cask 'quotefix' do
|
2015-12-13 01:29:06 +08:00
|
|
|
version '2.7.2'
|
|
|
|
sha256 'f8431da47b026137d3c43633ce683627e0a390e00ab96638c04869d1ae30d4e9'
|
2014-06-27 08:01:39 +08:00
|
|
|
|
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'
|
2014-06-27 08:01:39 +08:00
|
|
|
homepage 'https://github.com/robertklep/quotefixformac'
|
2014-10-01 23:33:44 +08:00
|
|
|
license :oss
|
2014-06-27 08:01:39 +08:00
|
|
|
|
2015-06-21 07:30:18 +08:00
|
|
|
stage_only true
|
2015-03-08 12:02:03 +08:00
|
|
|
|
2015-01-27 00:18:59 +08:00
|
|
|
postflight do
|
|
|
|
system 'defaults', 'write', 'com.apple.mail', 'EnableBundles', '-bool', 'true'
|
|
|
|
system 'defaults', 'write', 'com.apple.mail', 'BundleCompatibilityVersion', '-string', '3'
|
2015-06-21 07:30:18 +08:00
|
|
|
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
|
2015-01-27 00:18:59 +08:00
|
|
|
|
2015-06-21 07:30:18 +08:00
|
|
|
uninstall :delete => File.expand_path('~/Library/Mail/Bundles/QuoteFix.mailbundle')
|
|
|
|
|
2015-01-27 00:18:59 +08:00
|
|
|
caveats 'You may need to restart Mail.app before you can use QuoteFix'
|
2013-12-06 09:52:25 +08:00
|
|
|
end
|