You've already forked homebrew-cask
mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-04-22 15:25:17 -07:00
43 lines
1.8 KiB
Ruby
43 lines
1.8 KiB
Ruby
cask "github" do
|
|
arch arm: "arm64", intel: "x64"
|
|
platform = on_arch_conditional arm: "darwin-arm64", intel: "darwin"
|
|
|
|
version "3.3.11-d0de25f5"
|
|
sha256 arm: "ca6a6d6f9b6585e1c1acda6ffa536ff3d1f6bc8afc761af67e6fd210f17ee8df",
|
|
intel: "67e8a5244af365a4eb8c009bc8ee6b9f076f8c5009c30d271d4832e386c93ac6"
|
|
|
|
url "https://desktop.githubusercontent.com/github-desktop/releases/#{version}/GitHubDesktop-#{arch}.zip",
|
|
verified: "desktop.githubusercontent.com/github-desktop/"
|
|
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/#{platform}"
|
|
regex(%r{(\d+(?:\.\d+)[^/]*)/GitHubDesktop[._-]#{arch}\.zip}i)
|
|
strategy :header_match
|
|
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/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.github.GitHubClient.sfl*",
|
|
"~/Library/Application Support/com.github.GitHubClient",
|
|
"~/Library/Application Support/com.github.GitHubClient.ShipIt",
|
|
"~/Library/Application Support/GitHub Desktop",
|
|
"~/Library/Application Support/ShipIt_stderr.log",
|
|
"~/Library/Application Support/ShipIt_stdout.log",
|
|
"~/Library/Caches/com.github.GitHubClient",
|
|
"~/Library/Caches/com.github.GitHubClient.ShipIt",
|
|
"~/Library/Logs/GitHub Desktop",
|
|
"~/Library/Preferences/ByHost/com.github.GitHubClient.ShipIt.*.plist",
|
|
"~/Library/Preferences/com.github.GitHubClient.helper.plist",
|
|
"~/Library/Preferences/com.github.GitHubClient.plist",
|
|
],
|
|
rmdir: "~/.config/git"
|
|
end
|