kaishin / markoff

A lightweight Markdown (CommonMark) previewer for macOS.
ISC License
793 stars 43 forks source link

Install via `brew cask` #12

Open philadams-zz opened 8 years ago

philadams-zz commented 8 years ago

Would love to be able to pull this onto new machines automatically.

kaishin commented 8 years ago

This would be nice indeed, but It's a bit out of my comfort zone. Happy to accept PRs though.

philadams-zz commented 8 years ago

I think on your side, the key will be #16 - I can then submit a patch to homebrew making it installable in that system.

croaky commented 8 years ago

Formula would probably go in https://github.com/thoughtbot/homebrew-formulae? Maybe some examples there that could help guide

keith commented 8 years ago

For Markoff the markoff.rb would look something like this:

cask 'markoff' do
  version '1.0.0'
  sha256 'something here via `shasum -a 256 Markoff.zip`'

  url 'a .app download URL'
  appcast 'url if you support sparkle'
  name 'Markoff'
  homepage 'https://github.com/thoughtbot/Markoff'
  license :mit

  app 'Markoff.app'
end

I haven't ever tried having cask formulas in taps, but you might be able to nest them in the Casks directory instead of the Formula one. Otherwise the PRs on the main homebrew-cask repo get in very quick, so it's easier to support there than homebrew itself.

philadams-zz commented 8 years ago

+1 yep that'll work :)

adidalal commented 8 years ago

(Homebrew Cask maintainer here)

A .dmg with the .app bundle/binaries inside, uploaded via Github Releases is probably the most efficient way to get BackgroundMusic in the HBC repo - there's plenty of Casks to model off of, and there is excellent documentation to write your own (but I'm biased 😁)

Cbeck527 commented 8 years ago

@philadams @keith @adidalal my PR https://github.com/thoughtbot/Markoff/pull/36 should help adress this!

FranklinYu commented 6 years ago

mas-cli is another way to make use of Homebrew.

adidalal commented 6 years ago

FYI mas-cli != Homebrew (Cask).

We do know of it, and recommend it for MAS-only apps.

You can add still add it to Homebrew Cask, of course - my earlier comment is still true.

dotWee commented 2 years ago

Any update on the homebrew plans?