Merge pull request #200927 from Homebrew/bump-zed-0.172.10
[Homebrew/homebrew-cask.git] / Casks / h / hyper@canary.rb
blob198083cfa73184b9796ea3820f7d0ff2b48ff5b9
1 cask "hyper@canary" do
2   arch arm: "arm64", intel: "x64"
3   livecheck_arch = on_arch_conditional arm: "_arm64"
5   version "4.0.0-canary.5"
6   sha256 arm:   "b23c51a1a2c6a0c1940965f959d30a6a185111954204132402aa29038d30ad98",
7          intel: "4f0182611a650e83a8b5084e6f64e03c62c600641d5adb5af6f3253a796415d8"
9   url "https://github.com/vercel/hyper/releases/download/v#{version}/Hyper-#{version}-mac-#{arch}.zip",
10       verified: "github.com/vercel/hyper/"
11   name "Hyper"
12   desc "Terminal built on web technologies"
13   homepage "https://hyper.is/"
15   livecheck do
16     url "https://releases-canary.hyper.is/update/mac#{livecheck_arch}/0.0.0"
17     strategy :json do |json|
18       json["name"]&.delete_prefix("v")
19     end
20   end
22   auto_updates true
23   conflicts_with cask: "hyper"
24   depends_on macos: ">= :high_sierra"
26   app "Hyper.app"
27   binary "#{appdir}/Hyper.app/Contents/Resources/bin/hyper"
29   zap trash: [
30     "~/.hyper.js",
31     "~/.hyper_plugins",
32     "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/co.zeit.hyper.sfl*",
33     "~/Library/Application Support/Hyper",
34     "~/Library/Caches/co.zeit.hyper",
35     "~/Library/Caches/co.zeit.hyper.ShipIt",
36     "~/Library/Cookies/co.zeit.hyper.binarycookies",
37     "~/Library/Logs/Hyper",
38     "~/Library/Preferences/ByHost/co.zeit.hyper.ShipIt.*.plist",
39     "~/Library/Preferences/co.zeit.hyper.helper.plist",
40     "~/Library/Preferences/co.zeit.hyper.plist",
41     "~/Library/Saved Application State/co.zeit.hyper.savedState",
42   ]
43 end