-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
/
iterm2.rb
58 lines (51 loc) · 1.94 KB
/
iterm2.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
cask "iterm2" do
# NOTE: "2" is not a version number, but an intrinsic part of the product name
on_high_sierra :or_older do
version "3.3.12"
sha256 "6811b520699e8331b5d80b5da1e370e0ed467e68bc56906f08ecfa986e318167"
livecheck do
skip "Legacy version"
end
end
on_mojave do
version "3.4.16"
sha256 "b0941a008ead9f680e9f4937698b9b849acbb4e30ed1f3f100e3616cd6d49c0b"
livecheck do
skip "Legacy version"
end
end
on_catalina :or_newer do
version "3.5.11"
sha256 "655e32b4a9466104f1b0d8847e852515bc332bdf434801762e01b9625caa43e2"
livecheck do
# workaround for
# - https://github.com/Homebrew/homebrew-cask/pull/104019
# - https://github.com/gnachman/iterm2-website/issues/82
# url "https://iterm2.com/appcasts/final_modern.xml"
url "https://raw.githubusercontent.com/gnachman/iterm2-website/master/source/appcasts/final_modern.xml"
strategy :sparkle
end
end
url "https://iterm2.com/downloads/stable/iTerm2-#{version.dots_to_underscores}.zip"
name "iTerm2"
desc "Terminal emulator as alternative to Apple's Terminal app"
homepage "https://iterm2.com/"
auto_updates true
conflicts_with cask: [
"iterm2@beta",
"iterm2@nightly",
]
depends_on macos: ">= :sierra"
app "iTerm.app"
zap trash: [
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.googlecode.iterm2.itermai.sfl*",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.googlecode.iterm2.sfl*",
"~/Library/Application Support/iTerm",
"~/Library/Application Support/iTerm2",
"~/Library/Caches/com.googlecode.iterm2",
"~/Library/Containers/iTermAI",
"~/Library/Cookies/com.googlecode.iterm2.binarycookies",
"~/Library/Preferences/com.googlecode.iterm2.plist",
"~/Library/Saved Application State/com.googlecode.iterm2*.savedState",
]
end