46 lines
1.5 KiB
Ruby
46 lines
1.5 KiB
Ruby
cask "tableau" do
|
|
version "2023.2.1"
|
|
sha256 "300d031908cc8fcab669f00e22709ca47da64ba7ed93f9245d389ce95851186b"
|
|
|
|
url "https://downloads.tableau.com/tssoftware/TableauDesktop-#{version.dots_to_hyphens}.dmg"
|
|
name "Tableau Desktop"
|
|
desc "Data visualization software"
|
|
homepage "https://www.tableau.com/products/desktop"
|
|
|
|
livecheck do
|
|
url "https://www.tableau.com/downloads/desktop/mac"
|
|
strategy :header_match do |headers|
|
|
headers["location"][/TableauDesktop[._-]v?(\d+(?:-\d+)+)\.dmg/i, 1].tr("-", ".")
|
|
end
|
|
end
|
|
|
|
depends_on macos: ">= :mojave"
|
|
|
|
pkg "Tableau Desktop.pkg"
|
|
|
|
uninstall pkgutil: [
|
|
"com.amazon.redshiftodbc",
|
|
"com.simba.sparkodbc",
|
|
"com.simba.sqlserverodbc",
|
|
"com.tableausoftware.Desktop.app",
|
|
"com.tableausoftware.DesktopShortcut",
|
|
"com.tableausoftware.FLEXNet.11.*",
|
|
"com.tableausoftware.mysql",
|
|
"com.tableausoftware.oracle",
|
|
"com.tableausoftware.postgresql",
|
|
"simba.sparkodbc",
|
|
]
|
|
|
|
zap trash: [
|
|
"/Library/Preferences/com.tableau.Tableau-#{version.major_minor}.plist",
|
|
"~/Documents/My Tableau Repository",
|
|
"~/Library/Caches/com.tableau.caching",
|
|
"~/Library/Caches/com.tableausoftware.MapTiles",
|
|
"~/Library/Preferences/com.tableau.Registration.plist",
|
|
"~/Library/Preferences/com.tableau.Tableau-#{version.major_minor}.plist",
|
|
"~/Library/Saved Application State/com.tableausoftware.tableaudesktop.savedState",
|
|
"~/Library/Tableau",
|
|
],
|
|
delete: "/Library/Preferences/com.tableau.Tableau-#{version.major_minor}.plist"
|
|
end
|