Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install via Homebrew #81

Closed
carlowahlstedt opened this issue Oct 11, 2019 · 4 comments
Closed

Install via Homebrew #81

carlowahlstedt opened this issue Oct 11, 2019 · 4 comments
Labels
enhancement New feature or request platform:osx Specific to the macOS platform

Comments

@carlowahlstedt
Copy link

Feature description

Homebrew is a really nice way to manage installing and updating applications on macOS. Is there any way to be able to install this that way?

@carlowahlstedt carlowahlstedt added the enhancement New feature or request label Oct 11, 2019
@jrbriggs
Copy link
Contributor

We haven't yet set up distribution through Homebrew, but it's very much on our radar. We'll use this issue to track.

Thanks for the interest!

@aaroncrespo
Copy link

We'd probably switch to this project over the old java based solution. However, no homebrew is a bit of a blocker since thats how we provision machines on my team.

I threw together a rough (untested) cask file. Cask because this is currently distributed via pkgutil:

cask 'Git-Credential-Manager-Core' do
  version '2.0.87build15236'
  sha256 '843b2eae147e784789246c043b7f7a54b85139d9'
  
  # strip build\d+ for the path
  # replace build with . for the pkg name
  url "https://github.com/microsoft/Git-Credential-Manager-Core/releases/download/v#{version.sub(%r{build\d+}, '')}-beta/gcmcore-osx-#{version.sub(%r{build}, '.')}.pkg"

  name 'Git Credential Manager Core'

  homepage 'https://github.com/Microsoft/Git-Credential-Manager-Core'

  pkg "gcmcore-osx-#{version.sub(%r{build}, '.')}.pkg"

  uninstall script:  {
                       executable: 'uninstall.sh',
                       sudo:       true,
                     },
            pkgutil: 'com.microsoft.GitCredentialManager'
end

see https://github.com/Homebrew/homebrew-cask/blob/master/doc/cask_language_reference/stanzas/version.md for why version|build is modified as it is.

@aaroncrespo
Copy link

Any movement on this? I would love to move our systems over and away from a java dependency.

@mjcheetham mjcheetham added the platform:osx Specific to the macOS platform label Apr 28, 2020
@mjcheetham
Copy link
Collaborator

Hello all! Just an update that we've been working on getting GCM Core delivered via Homebrew.
You can try using our new Tap and installing the Cask from there:

brew tap microsoft/git
brew cask install git-credential-manager-core

Please file any issues if you encounter them :)
Thanks especially to @aaroncrespo ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request platform:osx Specific to the macOS platform
Projects
None yet
Development

No branches or pull requests

4 participants