homebrew-cask/Casks/daedalus-mainnet.rb

25 lines
914 B
Ruby

cask "daedalus-mainnet" do
version "3.0.0,15592"
sha256 "12756c615d3447eb6558a5d33d1b508eb8ec86fae2c57a2d238b9aad674dbde4"
url "https://update-cardano-mainnet.iohk.io/daedalus-#{version.before_comma}-mainnet-#{version.after_comma}.pkg",
verified: "update-cardano-mainnet.iohk.io/"
appcast "https://update-cardano-mainnet.iohk.io/daedalus-latest-version.json"
name "Daedalus Mainnet"
desc "Cryptocurrency wallet for ada on the Cardano blockchain"
homepage "https://daedaluswallet.io/"
auto_updates true
depends_on macos: ">= :high_sierra"
pkg "daedalus-#{version.before_comma}-mainnet-#{version.after_comma}.pkg"
uninstall pkgutil: "org.Daedalusmainnet.pkg"
zap trash: [
"~/Library/Application Support/Daedalus Mainnet",
"~/Library/Preferences/com.electron.daedalus-mainnet.plist",
"~/Library/Saved Application State/com.electron.daedalus-mainnet.savedState",
]
end