You've already forked homebrew-cask
mirror of
https://github.com/encounter/homebrew-cask.git
synced 2026-03-30 11:16:45 -07:00
39 lines
1.5 KiB
Ruby
39 lines
1.5 KiB
Ruby
cask "github" do
|
|
version "2.7.2-5b94c877"
|
|
sha256 "c88d668ac4678f3dae75da62b063e37d8f3f8768668468991d1a95988b6bde6f"
|
|
|
|
url "https://desktop.githubusercontent.com/releases/#{version}/GitHubDesktop.zip",
|
|
verified: "githubusercontent.com/"
|
|
name "GitHub Desktop"
|
|
desc "Desktop client for GitHub repositories"
|
|
homepage "https://desktop.github.com/"
|
|
|
|
livecheck do
|
|
url "https://central.github.com/deployments/desktop/desktop/latest/darwin"
|
|
strategy :header_match
|
|
regex(%r{(\d+(?:\.\d+).*)/GitHubDesktop\.zip}i)
|
|
end
|
|
|
|
auto_updates true
|
|
conflicts_with cask: "homebrew/cask-versions/github-beta"
|
|
|
|
app "GitHub Desktop.app"
|
|
binary "#{appdir}/GitHub Desktop.app/Contents/Resources/app/static/github.sh", target: "github"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/GitHub Desktop",
|
|
"~/Library/Application Support/com.github.GitHubClient",
|
|
"~/Library/Application Support/com.github.GitHubClient.ShipIt",
|
|
"~/Library/Application Support/ShipIt_stderr.log",
|
|
"~/Library/Application Support/ShipIt_stdout.log",
|
|
"~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.github.GitHubClient.sfl*",
|
|
"~/Library/Caches/com.github.GitHubClient",
|
|
"~/Library/Caches/com.github.GitHubClient.ShipIt",
|
|
"~/Library/Preferences/com.github.GitHubClient.helper.plist",
|
|
"~/Library/Preferences/com.github.GitHubClient.plist",
|
|
"~/Library/Preferences/ByHost/com.github.GitHubClient.ShipIt.*.plist",
|
|
"~/Library/Logs/GitHub Desktop",
|
|
],
|
|
rmdir: "~/.config/git"
|
|
end
|