homebrew-cask/Casks/github.rb

33 lines
1.4 KiB
Ruby

cask "github" do
version "2.6.1-afb56263"
sha256 "68e02aa48c173e873c1fc4e466842b92e2c8ce1e6321c636152bb56651e1ecbb"
url "https://desktop.githubusercontent.com/releases/#{version}/GitHubDesktop.zip",
verified: "githubusercontent.com/"
appcast "https://github.com/desktop/desktop/releases.atom"
name "GitHub Desktop"
desc "Desktop client for GitHub repositories"
homepage "https://desktop.github.com/"
auto_updates true
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