forked from Homebrew/homebrew-cask
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Justin Krehel <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,22 @@ | ||
cask "extraterm" do | ||
version "0.77.0" | ||
sha256 "fad003689e21fb9fd565a8385dfef56e4d9330ef2a17698c711cb41faf2f5dba" | ||
version "0.78.1" | ||
sha256 "ce8ac100098c96c0fa1ebdfee962b9881bf139b4065c3d9e547b908d6f35deaa" | ||
|
||
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 | ||
strategy :github_latest | ||
end | ||
|
||
app "ExtratermQt.app" | ||
|
||
zap trash: [ | ||
"~/Library/Application Support/extraterm", | ||
"~/Library/Preferences/com.electron.extraterm.helper.plist", | ||
"~/Library/Preferences/com.electron.extraterm.plist", | ||
"~/Library/Preferences/com.electron.extraterm*.plist", | ||
] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters