Skip to content

Commit

Permalink
Merge pull request #14321 from jawshooah/diffmerge-pkg
Browse files Browse the repository at this point in the history
DiffMerge: Use pkg installer
  • Loading branch information
fanquake committed Oct 11, 2015
2 parents 3000b9b + bc8b74b commit 19a9579
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Casks/diffmerge.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
cask :v1 => 'diffmerge' do
version '4.2.0.697'
sha256 '2c6368653af2440bb4460aef9bb1b2b5d8b84b5a3f47994c4abafc4d7ddbff9e'
sha256 '681b43b6ba5750934143798ee6876cde1ffe63db0fd8eae692dd75a59ceb26cf'

url "http://download-us.sourcegear.com/DiffMerge/4.2.0/DiffMerge.#{version}.intel.stable.dmg"
url "http://download-us.sourcegear.com/DiffMerge/#{version.sub(/\.\d+$/, '')}/DiffMerge.#{version}.intel.stable.pkg"
name 'DiffMerge'
homepage 'https://www.sourcegear.com/diffmerge'
license :unknown # todo: change license and remove this comment; ':unknown' is a machine-generated placeholder

app 'DiffMerge.app'
binary 'DiffMerge.app/Contents/MacOS/DiffMerge', :target => 'diffmerge'
pkg "DiffMerge.#{version}.intel.stable.pkg"

zap :delete => [
'~/Library/Preferences/com.sourcegear.DiffMerge.plist',
'~/Library/Preferences/SourceGear DiffMerge Preferences'
]
uninstall :pkgutil => 'com.sourcegear.DiffMerge'

zap :delete => [
'~/Library/Preferences/com.sourcegear.DiffMerge.plist',
'~/Library/Preferences/SourceGear DiffMerge Preferences',
'~/Library/Saved Application State/com.sourcegear.DiffMerge.savedState'
]

caveats <<-EOS.undent
Use "diffmerge --nosplash" to hide the splash screen when using
Expand Down

0 comments on commit 19a9579

Please sign in to comment.