dijo icon indicating copy to clipboard operation
dijo copied to clipboard

brew support for mac installation?

Open yohannes opened this issue 4 years ago • 9 comments

Hi! any plan to support mac installation via brew?

yohannes avatar Jul 20 '20 10:07 yohannes

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!

oppiliappan avatar Jul 20 '20 11:07 oppiliappan

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 avatar Jul 20 '20 11:07 aklsh

@aklsh that will be awesome. 🎉

yohannes avatar Jul 20 '20 11:07 yohannes

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

oppiliappan avatar Jul 20 '20 11:07 oppiliappan

@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.

rebebop avatar Jul 21 '20 07:07 rebebop

The following did it for me on OSX 10.13:

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

kevinstadler avatar Jul 21 '20 14:07 kevinstadler

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

oppiliappan avatar Jul 23 '20 04:07 oppiliappan

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

yohannes avatar Jul 23 '20 05:07 yohannes

@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!

oppiliappan avatar Jul 23 '20 05:07 oppiliappan