maid icon indicating copy to clipboard operation
maid copied to clipboard

Brew installer for MacOS

Open mrjcleaver opened this issue 9 years ago • 17 comments

Like https://github.com/benjaminoakes/maid/issues?utf8=✓&q=is%3Aissue+installer

So you could install with:

brew install maid

It would need to include a watcher or cron based sample.

mrjcleaver avatar Dec 27 '15 16:12 mrjcleaver

I'd be for this feature, but I'm unlikely to implement it myself.

benjaminoakes avatar Dec 29 '15 16:12 benjaminoakes

@benjaminoakes love to help with this issue. Looks like this has been a year and nobody has touched this issue.

soleo avatar Dec 04 '16 01:12 soleo

Here is the documentation for creating a new Formula in home brew.

https://github.com/Homebrew/brew/blob/master/docs/Formula-Cookbook.md#formula-cookbook

soleo avatar Dec 04 '16 02:12 soleo

Brew does have the ability to install rubygems as homebrew formulae. You just need to install the brew-gem formula with:

brew install brew-gem

After that you can install Ruby gems through homebrew with (to install maid for example):

brew gem install maid

Otherwise, if people are more in favor of an actual Homebrew formula for installing, the Brew formula should be rather simple (since the formula will use gem to install Maid). Something like this, to start with:

require 'formula'

class BrewMaid < Formula
  homepage 'https://github.com/benjaminoakes/maid/'

  def initialize(*args)
    @name = "maid"
    @version = "0.7.0"
    super
  end

  def install
    system "gem", "install", name, "--version", version, "--install-dir", prefix
  end
end

ChristianBagley avatar Jan 10 '17 03:01 ChristianBagley

I'm working on the latter idea: installing as a formula, and encountering a rather complex beast of ruby versions and gem install locations. I suspect there's a more correct thing to do (which is to install to ruby's location, rather than to homebrew. But then I encounter rights to install issues).

bensleveritt avatar Jan 10 '17 12:01 bensleveritt

@bensleveritt I know it has been awhile, are you still experiencing the problem? In terminal what does ruby --version return? Without knowing beforehand, I suspect that Homebrew is attempting to install using your system default Ruby. If you post the errors you're getting after running it through Homebrew, I can try and help troubleshoot.

ChristianBagley avatar Jun 23 '17 05:06 ChristianBagley

Going over old issues and triaging.

Is there still interest for this?

coaxial avatar Mar 19 '23 12:03 coaxial

I would find this helpful. It would be nice to have some use of something like "traveling Ruby" because it's actually kind of hard to get started with Maid

https://phusion.github.io/traveling-ruby/

benjaminoakes avatar Mar 19 '23 14:03 benjaminoakes

https://phusion.github.io/traveling-ruby/

That looks pretty cool

coaxial avatar Mar 19 '23 14:03 coaxial

Traveling Ruby is abandoned, and portable-ruby is stuck at version 2.6.8. Will need to look into this again when there is a stable release, because homebrew doesn't accept unstable or old versions (0.7.0 is from 2015)

coaxial avatar Apr 01 '23 08:04 coaxial

Oh, that's too bad. I wonder what the best way is to distribute Ruby applications to users who aren't deep into the Ruby ecosystem. (Is that a barrier to entry?)

benjaminoakes avatar Apr 01 '23 13:04 benjaminoakes

I think Brew would be a possibility but first we need a recent, stable version (unless we want to do a Tap)

And then there is the question of embedding Ruby which I don't fully understand: does the formula need to package its own portable Ruby or can we specify which version it needs and then brew installs it (there are Ruby formulas)?

For an AppImage I'm pretty sure we need to embed a Ruby binary and I'm not very clear on how to do that.

coaxial avatar Apr 01 '23 13:04 coaxial

I think Brew would be a possibility but first we need a recent, stable version

Well, should we revisit this after a stable release is out?

benjaminoakes avatar Apr 01 '23 14:04 benjaminoakes

Definitely.

coaxial avatar Apr 01 '23 17:04 coaxial

This issue has been open for 30 days without any activity. Remove no-issue-activity label or comment to avoid automatic closure in 7 days.

github-actions[bot] avatar May 03 '23 01:05 github-actions[bot]

Would love this personally!

piersolenski avatar Jun 14 '23 16:06 piersolenski

Bump :)

boldandbrad avatar Sep 25 '23 15:09 boldandbrad