ttscoff / searchlink

MIT License
59 stars 5 forks source link

FR: register at homebrew #5

Open chrisgrieser opened 1 year ago

chrisgrieser commented 1 year ago

For portability and also update management, it would be useful if one could install searchlink via homebrew. Maybe a custom tap? https://docs.brew.sh/How-to-Create-and-Maintain-a-Tap

ttscoff commented 10 months ago

I have a couple of custom taps, but I found that someone created a main-channel formula for mdless, another one of my projects. If you wanted to help out and contribute a formula for that, I would be grateful. I don't have time to figure it out myself right now.

TomBener commented 9 months ago

I wrote a cask code to install SearchLink with Homebrew:

cask "searchlink" do
    version "2.3.65"
    sha256 "b494716db3d4991cad0c981e7fca69ccde3168312d5bcbecef0d5f06db5bc0d8"

    url "https://github.com/ttscoff/searchlink/releases/download/#{version}/SearchLink.zip"
    name "SearchLink"
    desc "A macOS Service for Markdown writers to add hyperlinks without switching to the browser"
    homepage "https://github.com/ttscoff/searchlink"

    livecheck do
      url :url
      strategy :github_latest
    end

    service "SearchLink Services/Jump to SearchLink Error.workflow"
    service "SearchLink Services/SearchLink File.workflow"
    service "SearchLink Services/SearchLink.workflow"
  end

You could also use my tap with searchlink.rb included. Executing brew tap tombener/tap && brew install --cask searchlink will install SearchLink.

ttscoff commented 9 months ago

Thanks @TomBener , I'll see about getting this included, but having your tap available will be really nice for folks if I don't make that happen.