Files
homebrew-cask/Casks/f/forklift.rb
2023-11-17 07:27:09 -07:00

43 lines
1.5 KiB
Ruby

cask "forklift" do
version "4.0.5"
sha256 "77c777ebd0644dbd27bb592df3c1511f905c43811f1a681d3bdd65d796408aca"
url "https://download.binarynights.com/ForkLift/ForkLift#{version}.zip"
name "ForkLift"
desc "Finder replacement and FTP, SFTP, WebDAV and Amazon s3 client"
homepage "https://binarynights.com/"
livecheck do
url "https://updates.binarynights.com/ForkLift/update.xml"
strategy :sparkle, &:short_version
end
auto_updates true
conflicts_with cask: "homebrew/cask-versions/forklift3"
depends_on macos: ">= :monterey"
app "ForkLift.app"
uninstall delete: "/Library/PrivilegedHelperTools/com.binarynights.ForkLiftHelper",
launchctl: [
"com.binarynights.ForkLiftHelper",
"com.binarynights.ForkLiftMini",
],
quit: [
"com.binarynights.ForkLift-#{version.major}",
"com.binarynights.ForkLiftMini",
]
zap trash: [
"~/Library/Application Support/ForkLift",
"~/Library/Caches/com.binarynights.ForkLift-#{version.major}",
"~/Library/Cookies/com.binarynights.ForkLift-#{version.major}.binarycookies",
"~/Library/HTTPStorages/com.binarynights.ForkLift-#{version.major}",
"~/Library/Logs/ForkLift",
"~/Library/Logs/ForkLiftMini",
"~/Library/Preferences/com.binarynights.ForkLift-#{version.major}.plist",
"~/Library/Preferences/com.binarynights.ForkLiftMini.plist",
"~/Library/Saved Application State/com.binarynights.ForkLift-#{version.major}.savedState",
]
end