homebrew-cask-versions/Casks/github.rb
Matthew Rothenberg 5fc4baedf0 Fix CLI tool installation in GitHub for Mac
Symlinks the 'github' CLI binary that enables opening GitHub for Mac
from the command line. As per the defaults for the application, the
internal `github_cli` binary is symlinked simply as `github`.

Note this intetionally does *not* also symlink the bundled versions.
of `git` itself, as anyone using brewcask is going to want to be able
to manage those normally via homebrew.`
2014-04-15 13:18:53 -04:00

11 lines
371 B
Ruby

class Github < Cask
url 'https://central.github.com/mac/latest'
homepage 'http://mac.github.com'
version 'latest'
no_checksum
link 'GitHub.app'
binary 'GitHub.app/Contents/MacOS/github_cli', :target => 'github'
after_install do
system '/usr/bin/defaults', 'write', 'com.github.GitHub', 'moveToApplicationsFolderAlertSuppress', '-bool', 'true'
end
end