44 lines
1.9 KiB
Ruby
44 lines
1.9 KiB
Ruby
cask "github@beta" do
|
|
arch arm: "arm64", intel: "x64"
|
|
platform = on_arch_conditional arm: "darwin-arm64", intel: "darwin"
|
|
|
|
version "3.4.2-beta3-6edaffed"
|
|
sha256 arm: "7d8dd154fb15a2c2c337081de84fe516b894f1965d3ec584f7e73fee7d6838bc",
|
|
intel: "96e96c2e3e81277ae8f4bace90386194dd0aa2ddce8719d26f85a5e1dac0493c"
|
|
|
|
url "https://desktop.githubusercontent.com/github-desktop/releases/#{version}/GitHubDesktop-#{arch}.zip",
|
|
verified: "desktop.githubusercontent.com/github-desktop/releases/"
|
|
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}?env=beta"
|
|
regex(%r{(\d+(?:\.\d+)[^/]*)/GitHubDesktop[._-]#{arch}\.zip}i)
|
|
strategy :header_match
|
|
end
|
|
|
|
auto_updates true
|
|
conflicts_with cask: "github"
|
|
depends_on macos: ">= :catalina"
|
|
|
|
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
|