36 lines
1.2 KiB
Ruby
36 lines
1.2 KiB
Ruby
cask "iterm2" do
|
|
# NOTE: "2" is not a version number, but an intrinsic part of the product name
|
|
if MacOS.version <= :high_sierra
|
|
version "3.3.12"
|
|
sha256 "6811b520699e8331b5d80b5da1e370e0ed467e68bc56906f08ecfa986e318167"
|
|
else
|
|
version "3.4.3"
|
|
sha256 "9ed73844838bddf797eadf37e5f7da3771308c3f74d38cd422c18eebaaa8f6b9"
|
|
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://www.iterm2.com/"
|
|
|
|
livecheck do
|
|
url "https://iterm2.com/appcasts/final_modern.xml"
|
|
strategy :sparkle
|
|
end
|
|
|
|
auto_updates true
|
|
conflicts_with cask: "iterm2-beta"
|
|
depends_on macos: ">= :sierra"
|
|
|
|
app "iTerm.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/iTerm",
|
|
"~/Library/Application Support/iTerm2",
|
|
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.googlecode.iterm2.sfl*",
|
|
"~/Library/Caches/com.googlecode.iterm2",
|
|
"~/Library/Preferences/com.googlecode.iterm2.plist",
|
|
"~/Library/Saved Application State/com.googlecode.iterm2.savedState",
|
|
]
|
|
end
|