Browse Source

Refer to homebrew/core formula instead of custom tap (#307)

remotes/origin/add-with-shims
James Chen-Smith 4 years ago committed by GitHub
parent
commit
f976df5730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .ci/install.sh
  2. 4
      .github/workflows/installation_script.yml
  3. 6
      README.md

2
.ci/install.sh

@ -70,7 +70,7 @@ set_filename() {
download_fnm() { download_fnm() {
if [ "$USE_HOMEBREW" == "true" ]; then if [ "$USE_HOMEBREW" == "true" ]; then
brew install Schniz/tap/fnm > /dev/null brew install fnm
else else
if [ "$RELEASE" == "latest" ]; then if [ "$RELEASE" == "latest" ]; then
URL="https://github.com/Schniz/fnm/releases/latest/download/$FILENAME.zip" URL="https://github.com/Schniz/fnm/releases/latest/download/$FILENAME.zip"

4
.github/workflows/installation_script.yml

@ -66,8 +66,8 @@ jobs:
- run: "sudo apt-get install -y ${{ matrix.shell }}" - run: "sudo apt-get install -y ${{ matrix.shell }}"
name: Install ${{matrix.shell}} using apt-get name: Install ${{matrix.shell}} using apt-get
if: matrix.setup.os == 'ubuntu' if: matrix.setup.os == 'ubuntu'
- run: "brew install ${{ matrix.shell }}" - run: "brew update && brew install ${{ matrix.shell }}"
name: Install ${{matrix.shell}} using Homebrew name: Update formulae and install ${{matrix.shell}} using Homebrew
if: matrix.setup.os == 'macos' if: matrix.setup.os == 'macos'
- run: | - run: |
if [ -f ~/.bashrc ]; then if [ -f ~/.bashrc ]; then

6
README.md

@ -34,7 +34,7 @@ curl -fsSL https://fnm.vercel.app/install | bash
#### Upgrade #### Upgrade
On OSX, it is a simple as `brew upgrade Schniz/tap/fnm`. On OSX, it is a simple as `brew upgrade fnm`.
On other operating systems, upgrading `fnm` is almost the same as installing it. To prevent duplication in your shell config file add `--skip-shell` to install command. On other operating systems, upgrading `fnm` is almost the same as installing it. To prevent duplication in your shell config file add `--skip-shell` to install command.
@ -62,10 +62,8 @@ curl -fsSL https://fnm.vercel.app/install | bash -s -- --install-dir "./.fnm" --
#### Using Homebrew (OSX) #### Using Homebrew (OSX)
[This is a custom tap I'm maintaining](https://github.com/Schniz/homebrew-tap), and will be used until fnm will move to the official one.
```bash ```bash
brew install Schniz/tap/fnm brew install fnm
``` ```
Then apply the changes the installer prints, to set up your shell profile. Then apply the changes the installer prints, to set up your shell profile.

Loading…
Cancel
Save