oppiliappan/dijo

brew support for mac installation?

Opened this issue ยท 9 comments

Hi! any plan to support mac installation via brew?

Hiya @yohannes,

I don't have a mac, nor do I have any experience with brew, it would be great if someone could maintain a package!

aklsh commented

Hey @yohannes @NerdyPepper,
Found this article online to package a rust project for Homebrew. Would be happy to help maintain as a brew package.

@aklsh that will be awesome. ๐ŸŽ‰

@aklsh Sounds great! I suppose I would have to compile for darwin and publish binaries with each release.

@NerdyPepper I think you can automate the entire process using github actions as they support macOS environments. This would also solve the issue for building against darwin since you don't have a mac at hand.

The following did it for me on OSX 10.13:

$ brew install rust
$ rustup-init (confirm defaults by pressing [Enter])
$ cargo install dijo

@aklsh @razagill as of v0.2.0, binary releases for darwin are published to GitHub Releases.

@NerdyPepper it seems the darwin release is absent of a file extension. Is this expected?

@yohannes the file extension doesn't matter really, you can execute it with ./dijo-x86_64-apple at a shell, or move it into your path (rename to dijo) and execute with dijo from anywhere.

I am not too familiar with macOS, their .app format, and that format's ubiquity, do let me know if improvements can me made!