Code Monkey home page Code Monkey logo

Comments (9)

ajermakovics avatar ajermakovics commented on July 21, 2024

Great idea! Have never published on homebrew before so not sure how easy it is

from jvm-mon.

johanhaleby avatar johanhaleby commented on July 21, 2024

I've tried to publish a project once, kubetail but it was declined :). You should probably open up a tap (which is what I'll try to do next). Maybe you can find some inspiration from the wiki page I wrote, if not then I suppose one has to read the docs :/

from jvm-mon.

ctwise avatar ctwise commented on July 21, 2024

It's easy to publish on homebrew, the "recipes" are simple scripts. But... the app needs to be self-contained. You can't have scripts that have to be called from certain directories, npm installs that need to be run, etc.

from jvm-mon.

ajermakovics avatar ajermakovics commented on July 21, 2024

The 'self-contained' bit might be tricky. jvm-mon relies on a jdk being on the machine.

from jvm-mon.

janhoy avatar janhoy commented on July 21, 2024

I tried it out locally, and this simple formula works:
https://gist.github.com/03eea1303e5a9ff1a85dfffd96d4a674
(Download and copy to /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/jvm-mon.rb)

This is the file layout after install

/usr/local/Cellar$ tree -L 3 jvm-mon/
jvm-mon/
└── 0.2
    ├── INSTALL_RECEIPT.json
    ├── bin
    │   └── jvm-mon -> ../libexec/bin/jvm-mon
    └── libexec
        ├── bin
        ├── jvm-mon.js
        ├── lib
        └── node_modules

from jvm-mon.

janhoy avatar janhoy commented on July 21, 2024

As you see, we specify java 8 as a dependency, and the node deps do not install any moving parts, so should be safe. Anyway, it works :)

from jvm-mon.

ajermakovics avatar ajermakovics commented on July 21, 2024

Submitted PR Homebrew/homebrew-core#11661
Unfortunately automatic checks failed but not quite sure why. Works locally

from jvm-mon.

ajermakovics avatar ajermakovics commented on July 21, 2024

Ok, the formula needs a test

from jvm-mon.

ajermakovics avatar ajermakovics commented on July 21, 2024

It's been merged into homebrew! Thank you @janhoy!

brew install jvm-mon

from jvm-mon.

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.