homebrew-cask/Casks/hyper.rb

40 lines
1.3 KiB
Ruby

cask "hyper" do
arch arm: "arm64", intel: "x64"
version "3.4.1"
sha256 arm: "7d2440fdd93fde4101e603fe2de46732b54292a868ad17dbcb55288e6f8430a8",
intel: "aa6ab73fdc60f60d428eb0247b270f958e58709249077b5102c7ab24aff19683"
url "https://github.com/vercel/hyper/releases/download/v#{version}/Hyper-#{version}-mac-#{arch}.zip",
verified: "github.com/vercel/hyper/"
name "Hyper"
desc "Terminal built on web technologies"
homepage "https://hyper.is/"
livecheck do
url :url
strategy :github_latest
end
auto_updates true
conflicts_with cask: "homebrew/cask-versions/hyper-canary"
app "Hyper.app"
binary "#{appdir}/Hyper.app/Contents/Resources/bin/hyper"
zap trash: [
"~/.hyper_plugins",
"~/.hyper.js",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.zeit.hyper.sfl*",
"~/Library/Application Support/Hyper",
"~/Library/Caches/co.zeit.hyper.ShipIt",
"~/Library/Caches/co.zeit.hyper",
"~/Library/Cookies/co.zeit.hyper.binarycookies",
"~/Library/Logs/Hyper",
"~/Library/Preferences/ByHost/co.zeit.hyper.ShipIt.*.plist",
"~/Library/Preferences/co.zeit.hyper.helper.plist",
"~/Library/Preferences/co.zeit.hyper.plist",
"~/Library/Saved Application State/co.zeit.hyper.savedState",
]
end