igor-petruk / scriptisto

A language-agnostic "shebang interpreter" that enables you to write scripts in compiled languages.
Apache License 2.0
909 stars 25 forks source link

Add package to Homebrew #24

Closed NightMachinery closed 1 year ago

NightMachinery commented 4 years ago

Installing it via cargo is quite slow. Having a ready binary is much better. Homebrew supports both macOS and linux.

igor-petruk commented 4 years ago

I don't really have a Mac, is it possible to prepare such package from Linux? PR or tips are welcome

igor-petruk commented 4 years ago

In addition, I've never tested the tool on Mac. I can try add a recipe for Linux and see where to go from there

NightMachinery commented 4 years ago

It seemed to work fine on my mac machine. Since Homebrew works on Linux, too, I assume it should be possible to do this on Linux.

igor-petruk commented 4 years ago

Brew might work, but I need to produce a pre-built binary.

Example: https://github.com/BurntSushi/ripgrep/blob/master/pkg/brew/ripgrep-bin.rb#L7

It references an archive with a static installable binary. But I build my binaries on drone.io in Docker (https://cloud.drone.io/igor-petruk/scriptisto). I need to figure out how to automate Mac OS X builds in the cloud.

jayvdb commented 3 years ago

GitHub Actions support MacOS.

igor-petruk commented 1 year ago

I've made a tap with pre-built packages:

$ brew install igor-petruk/tap/scriptisto

It currently uses packages from the release page and they are built on Github Action runners: Linux musl-based static binary and the binary produced on Mac OS X 12.

I haven't yet tested it on Mac and I am interested in trying to publish it to homebrew-core with bottles built for every version of Mac OS X.

igor-petruk commented 1 year ago

FYI: https://github.com/Homebrew/homebrew-core/pull/121060 is a PR trying to add a Formula to the core

igor-petruk commented 1 year ago

Formula added to the core: https://github.com/Homebrew/homebrew-core/blob/master/Formula/scriptisto.rb