Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiffMerge: Use pkg installer #14321

Merged
merged 1 commit into from
Oct 11, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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