homebrew-cask/Casks/trezor-suite.rb

31 lines
779 B
Ruby

cask "trezor-suite" do
arch = Hardware::CPU.intel? ? "x64" : "arm64"
version "22.1.1"
if Hardware::CPU.intel?
sha256 "b95a6ecde010c41ce186f92039b116d97b6ec729479cbd22704079434d1a0e9f"
else
sha256 "9e68c0c82dc9a73976c4374ccb51a01092ca1efe2d7494886854c565b653dc03"
end
url "https://suite.trezor.io/web/static/desktop/Trezor-Suite-#{version}-mac-#{arch}.dmg"
name "TREZOR Suite"
desc "Companion app for the Trezor hardware wallet"
homepage "https://suite.trezor.io/"
livecheck do
url "https://github.com/trezor/trezor-suite"
strategy :github_latest
end
auto_updates true
app "Trezor Suite.app"
zap trash: [
"~/Library/Application Support/@trezor/suite-desktop",
"~/Library/Preferences/io.trezor.TrezorSuite.plist",
]
end