homebrew-cask/Casks/github.rb

36 lines
1.3 KiB
Ruby
Raw Normal View History

2014-11-14 01:25:56 +08:00
cask :v1 => 'github' do
2015-07-12 18:51:34 +08:00
version '208'
sha256 '8c1f458d273d335a4983e5918374c9e0927e19ed5c86ca9607cd1aadc2d553da'
2015-07-12 18:51:34 +08:00
# cloudfront.net is the official download host per the vendor homepage
url "https://d4hwcs1zqtwzs.cloudfront.net/mac/GitHub%20for%20Mac%20#{version}.zip"
2015-07-09 08:58:14 +08:00
appcast 'https://central.github.com/mac/appcast.xml',
:sha256 => 'f67f6cc4f51758d15ff4e55173ce2976f312e5bb551b74d00198fd0d41dd9109'
2015-01-12 02:26:49 +08:00
name 'GitHub'
homepage 'https://mac.github.com/'
2014-10-01 23:32:57 +08:00
license :oss
2014-09-16 00:05:38 +08:00
app 'GitHub.app'
binary 'GitHub.app/Contents/MacOS/github_cli', :target => 'github'
2014-11-02 07:14:31 +08:00
2014-09-09 20:55:27 +08:00
postflight do
2014-11-02 07:14:31 +08:00
suppress_move_to_applications
end
2014-10-11 22:27:32 +08:00
uninstall :launchctl => [
'com.github.GitHub.Conduit',
'com.github.GitHub.GHInstallCLI'
]
2014-10-11 22:27:32 +08:00
zap :delete => [
'~/Library/Application Support/GitHub for Mac',
'~/Library/Application Support/ShipIt_stderr.log',
'~/Library/Application Support/ShipIt_stdout.log',
'~/Library/Application Support/com.github.GitHub',
'~/Library/Application Support/com.github.GitHub.ShipIt',
'~/Library/Caches/GitHub for Mac',
'~/Library/Caches/com.github.GitHub',
'~/Library/Containers/com.github.GitHub.Conduit',
]
2012-10-09 02:50:35 +08:00
end