homebrew-cask/Casks/fork.rb

33 lines
1.1 KiB
Ruby

cask "fork" do
version "2.2"
sha256 "ab40ce87d06b3a156169a59a1146d31fcbd63c01acb6862652b08b0c89fb7d0f"
url "https://forkapp.ams3.cdn.digitaloceanspaces.com/mac/Fork-#{version}.dmg",
verified: "forkapp.ams3.cdn.digitaloceanspaces.com/mac/"
name "Fork"
desc "GIT client"
homepage "https://git-fork.com/"
livecheck do
url "https://git-fork.com/update/feed.xml"
strategy :sparkle
end
auto_updates true
app "Fork.app"
binary "#{appdir}/Fork.app/Contents/Resources/fork_cli", target: "fork"
zap trash: [
"~/Library/Application Support/Fork",
"~/Library/Application Support/com.DanPristupov.Fork",
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.danpristupov.fork.sfl2",
"~/Library/Caches/com.DanPristupov.Fork",
"~/Library/Cookies/com.DanPristupov.Fork.binarycookies",
"~/Library/Logs/Fork.log",
"~/Library/Preferences/com.DanPristupov.Fork.plist",
"~/Library/Saved Application State/com.DanPristupov.Fork.savedState",
"~/Library/WebKit/com.DanPristupov.Fork",
]
end