32 lines
1.0 KiB
Ruby
32 lines
1.0 KiB
Ruby
cask "sublime-merge" do
|
|
version "2096"
|
|
sha256 "9b1158de33b09d404674e3de446ce02f3780b1e47bad6374c1eb2a5394b2cdab"
|
|
|
|
url "https://download.sublimetext.com/sublime_merge_build_#{version}_mac.zip",
|
|
verified: "download.sublimetext.com/"
|
|
name "Sublime Merge"
|
|
desc "Git client"
|
|
homepage "https://www.sublimemerge.com/"
|
|
|
|
livecheck do
|
|
url "https://www.sublimemerge.com/updates/stable_update_check"
|
|
regex(/"latest_version":\s*(\d+)/i)
|
|
end
|
|
|
|
auto_updates true
|
|
conflicts_with cask: "sublime-merge@dev"
|
|
|
|
app "Sublime Merge.app"
|
|
binary "#{appdir}/Sublime Merge.app/Contents/SharedSupport/bin/smerge"
|
|
|
|
uninstall quit: "com.sublimemerge"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.sublimemerge.sfl*",
|
|
"~/Library/Application Support/Sublime Merge",
|
|
"~/Library/Caches/com.sublimemerge/",
|
|
"~/Library/Preferences/com.sublimemerge.plist",
|
|
"~/Library/Saved Application State/com.sublimemerge.savedState",
|
|
]
|
|
end
|