homebrew-cask/Casks/github-desktop.rb

31 lines
1.5 KiB
Ruby

cask 'github-desktop' do
version '0.7.0-bd9a4024'
sha256 '055f096082ce470a747ffd80595dc1d460a476196e99554aadf2d4ae89bd4bdf'
# githubusercontent.com was verified as official when first introduced to the cask
url "https://desktop.githubusercontent.com/releases/#{version}/GitHubDesktop.zip"
appcast 'https://github.com/desktop/desktop/releases.atom',
checkpoint: '4f2ac65216c2dd0b7f8b0980da8bef6d395d43420f150578dd82cfef2965dd46'
name 'GitHub Desktop'
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 delete: [
'~/Library/Application Support/GitHub Desktop',
'~/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/Application Support/com.github.GitHubClient',
'~/Library/Application Support/com.github.GitHubClient.ShipIt',
'~/Library/Caches/com.github.GitHubClient',
'~/Library/Caches/com.github.GitHubClient.ShipIt',
'~/Library/Preferences/com.github.GitHubClient.helper.plist',
'~/Library/Preferences/com.github.GitHubClient.plist',
],
rmdir: '~/.config/git'
end