39 lines
1.2 KiB
Ruby
39 lines
1.2 KiB
Ruby
cask "extraterm" do
|
|
version "0.77.0"
|
|
sha256 "fad003689e21fb9fd565a8385dfef56e4d9330ef2a17698c711cb41faf2f5dba"
|
|
|
|
url "https://github.com/sedwards2009/extraterm/releases/download/v#{version}/ExtratermQt_#{version}.dmg",
|
|
verified: "github.com/sedwards2009/extraterm/"
|
|
name "extraterm"
|
|
desc "Swiss army chainsaw of terminal emulators"
|
|
homepage "https://extraterm.org/"
|
|
|
|
# As of writing, upstream marks all releases on GitHub as "pre-release".
|
|
# This should be updated to use the `GithubLatest` strategy if/when stable
|
|
# versions become available.
|
|
livecheck do
|
|
url :url
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
strategy :github_releases do |json, regex|
|
|
json.map do |release|
|
|
# This omits the usual `release["prerelease"]` early return condition,
|
|
# as we need to work with pre-release versions for now.
|
|
next if release["draft"]
|
|
|
|
match = release["tag_name"]&.match(regex)
|
|
next if match.blank?
|
|
|
|
match[1]
|
|
end
|
|
end
|
|
end
|
|
|
|
app "ExtratermQt.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/extraterm",
|
|
"~/Library/Preferences/com.electron.extraterm.helper.plist",
|
|
"~/Library/Preferences/com.electron.extraterm.plist",
|
|
]
|
|
end
|