homebrew-cask/Casks/a/actual-odbc-pack.rb

32 lines
909 B
Ruby

cask "actual-odbc-pack" do
version "1.0.22"
sha256 :no_check
url "https://actualtechnologies.cachefly.net/Actual_ODBC_Pack.dmg",
verified: "actualtechnologies.cachefly.net/"
name "Actual ODBC Driver Pack"
desc "Connect to enterprise databases using common desktop applications"
homepage "https://www.actualtech.com/products.php"
livecheck do
url :url
strategy :extract_plist do |items|
items["com.actualtechnologies.odbcmanager"].short_version
end
end
pkg "Actual ODBC Pack.pkg"
uninstall pkgutil: [
"com.actualtechnologies.odbcdriver.*",
"com.actualtechnologies.odbcmanager.pkg",
]
zap trash: [
"~/Library/Application Support/Actual ODBC",
"~/Library/Logs/Actual_iODBC_Installer.log",
"~/Library/Saved Application State/com.actualtechnologies.odbcmanager.savedState",
],
rmdir: "~/Documents/ODBC Documents"
end