Skip to content

Conversation

@Schniz
Copy link
Owner

@Schniz Schniz commented Oct 1, 2020

I don't really know how to make Homebrew patch the shell profiles
so making the install script use Homebrew might work well.

This will make Homebrew the default installation mechanism for fnm, which is already the case, but now will be supported by the installation script.

This can be overridden and work the same way as the Linux installation the following way:

curl SCRIPT | bash -s -- --force-no-brew # or --force-install

This makes a great follow up question:
Is there a way to automate apt/yum/etc so we'll use real package managers instead of implementing our own for Linux boxes?

@Schniz Schniz self-assigned this Oct 1, 2020
@Schniz Schniz added the PR: New Feature A new feature was added label Oct 3, 2020
@Schniz Schniz merged commit 44e148e into master Oct 3, 2020
@Schniz Schniz deleted the use-brew-for-osx branch October 3, 2020 17:59
@waldyrious
Copy link
Contributor

@Schniz Homebrew does work on Linux, as long as the formula code compiles the program from source, rather than downloading a precompiled binary. Couldn't the fnm formula be adapted to that end?

@Schniz
Copy link
Owner Author

Schniz commented Oct 7, 2020

Couldn't the fnm formula be adapted to that end?

I'll adapt it to favor downloading a prebuilt binary but compile when necessary. Now that the repo is Rust and not native Reason, it should be easier since it is more supported. Thanks!

@waldyrious
Copy link
Contributor

AFAIK a precompiled binary (bottle) is provided automatically by Homebrew. It's possible that that's only available for formulas in the core repo, but I see no reason not to migrate the formula there once it compiles fnm from source :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: New Feature A new feature was added

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants