-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
/
meld.rb
36 lines (29 loc) · 980 Bytes
/
meld.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cask "meld" do
version "3.21.0-r3,19"
sha256 "50a4a45b3b7f44910c1a4c782c044579bc9dd09432c5e0a965dbeb973bbc767e"
url "https://github.com/yousseb/meld/releases/download/osx-#{version.csv.second}/meldmerge.dmg",
verified: "github.com/yousseb/meld/"
name "Meld for OSX"
desc "Visual diff and merge tool"
homepage "https://yousseb.github.io/meld/"
deprecate! date: "2023-12-17", because: :discontinued
depends_on macos: ">= :high_sierra"
app "Meld.app"
# shim script (https://github.com/Homebrew/homebrew-cask/issues/18809)
shimscript = "#{staged_path}/meld.wrapper.sh"
binary shimscript, target: "meld"
preflight do
File.write shimscript, <<~EOS
#!/bin/sh
exec '#{appdir}/Meld.app/Contents/MacOS/Meld' "$@"
EOS
end
zap trash: [
"~/.local/share/meld",
"~/Library/Preferences/org.gnome.meld.plist",
"~/Library/Saved Application State/org.gnome.meld.savedState/",
]
caveats do
requires_rosetta
end
end