Closed NightMachinery closed 1 year ago
I don't really have a Mac, is it possible to prepare such package from Linux? PR or tips are welcome
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
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.
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.
GitHub Actions support MacOS.
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.
FYI: https://github.com/Homebrew/homebrew-core/pull/121060 is a PR trying to add a Formula to the core
Formula added to the core: https://github.com/Homebrew/homebrew-core/blob/master/Formula/scriptisto.rb
Installing it via
cargo
is quite slow. Having a ready binary is much better. Homebrew supports both macOS and linux.