/
forklift.rb
42 lines (36 loc) 路 1.51 KB
/
forklift.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
cask "forklift" do
version "4.1.1"
sha256 "3ca6a5e15b49da76b93fddcbc1f04d5c216e5ea8f55e3e22b4a58c747e10e1d5"
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 launchctl: [
"com.binarynights.ForkLiftHelper",
"com.binarynights.ForkLiftMini",
],
quit: [
"com.binarynights.ForkLift-#{version.major}",
"com.binarynights.ForkLiftMini",
],
delete: "/Library/PrivilegedHelperTools/com.binarynights.ForkLiftHelper"
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