homebrew-cask/Casks/ferdi.rb

44 lines
1.3 KiB
Ruby

cask "ferdi" do
arch = Hardware::CPU.intel? ? "" : "-arm64"
version "5.6.5"
if Hardware::CPU.intel?
sha256 "11a58dc5d2ddcbc7e1daa585a3eacee5b622a178ab94f2e41016d57bc74340f7"
else
sha256 "cbc6c6561d9f5ec4ea1b7033bab20777ebf92ac0143ac65f78eea52e310b8283"
end
url "https://github.com/getferdi/ferdi/releases/download/v#{version}/Ferdi-#{version}#{arch}.dmg",
verified: "github.com/getferdi/ferdi/"
name "Ferdi"
desc "Messaging browser which combines several services"
homepage "https://getferdi.com/"
livecheck do
url :url
strategy :github_latest
end
auto_updates true
conflicts_with cask: "homebrew/cask-versions/ferdi-beta"
app "Ferdi.app"
uninstall quit: "com.kytwb.ferdi",
delete: "/Library/Logs/DiagnosticReports/Ferdi Helper_.*wakeups_resource.diag"
zap trash: [
"~/Library/Application Support/Caches/ferdi-updater",
"~/Library/Application Support/Ferdi",
"~/Library/Caches/com.kytwb.ferdi",
"~/Library/Caches/com.kytwb.ferdi.ShipIt",
"~/Library/Logs/Ferdi",
"~/Library/Preferences/ByHost/com.kytwb.ferdi.ShipIt.*.plist",
"~/Library/Preferences/com.electron.ferdi.helper.plist",
"~/Library/Preferences/com.electron.ferdi.plist",
"~/Library/Preferences/com.kytwb.ferdi.plist",
"~/Library/Saved Application State/com.kytwb.ferdi.savedState",
]
end