Giter Site home page Giter Site logo

Make a homebrew installer about fn HOT 8 CLOSED

fnproject avatar fnproject commented on May 22, 2024
Make a homebrew installer

from fn.

Comments (8)

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @rdallman on May 17, 2017, 16:31

here's the one i made for ironcli a while ago https://github.com/Homebrew/homebrew-core/pull/27/files -- should be almost the same

from fn.

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @rdallman on May 17, 2017, 16:32

we need a public repo before we can really do this (or we can make it for the iron repo one but idk)

from fn.

rdallman avatar rdallman commented on May 22, 2024

In gitlab by @treeder on May 18, 2017, 10:10

Yes, need to wait for it to be public.

from fn.

treeder avatar treeder commented on May 22, 2024

Created formula below. This works except I think it violates the binary rule, apparently homebrew wants people to build on the user's machine (no idea why?), but will try to get it through anyways. If not, I'll change it to the way Reed has it for ironcli.

TODO: Once public, this code will go into /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/fn.rb and pushed to a fork, then pull request into homebrew-core.

class Fn < Formula
  desc "The CLI tool for the fn project."
  homepage "https://github.com/fnproject/fn"
  version "0.3.55"
  url "https://github.com/fnproject/cli/archive/#{version}.tar.gz"
  sha256 "cdcfdf791be60a5fdd578f912833020f4ee9389655f32d52a6bc9747f4bf7b8f"

  def install
    base_url="https://github.com/fnproject/cli/releases/download/#{version}"
    system("curl -sSL -o fn #{base_url}/fn_mac")
    puts `ls -al`
    bin.install "fn"
  end

  def post_install
    puts `fn --version`
  end

  test do
    puts `#{bin}/fn --version`
  end
end

from fn.

rdallman avatar rdallman commented on May 22, 2024

(no idea why?)

ya know, some people still have to deal with dynamically linked libraries ;)

from fn.

treeder avatar treeder commented on May 22, 2024

dep's formula: https://github.com/Homebrew/homebrew-core/blob/master/Formula/dep.rb

Having a dependency on "go" is pretty wasteful, hopefully they'll let us just install the bin.

from fn.

treeder avatar treeder commented on May 22, 2024

oooh, think I figured out how to do it right.

https://github.com/Homebrew/brew/blob/master/docs/Bottles.md

from fn.

treeder avatar treeder commented on May 22, 2024

Submitted PR Homebrew/homebrew-core#17192

from fn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.