nadrad / h-m-m

Hackers Mind Map
GNU General Public License v3.0
1.89k stars 53 forks source link

Install script for Mac #27

Closed nadrad closed 1 year ago

nadrad commented 2 years ago

Can someone check whether or not the install script works on Mac, and if not, come with adjustments to it to work on both platforms, or prepare a separate install script for Mac?

otakumesi commented 2 years ago

Although I ran the install script on M1 Mac, I was able to install this tool if I had already installed PHP and xclip.

gloof11 commented 2 years ago

There are additional dependencies that need installing, at least on Intel macs. I'm gonna write some OS detect into the install script and do a pull request.

airingursb commented 2 years ago
brew install php
brew install xclip
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/nadrad/h-m-m/main/install.sh)"
nadrad commented 1 year ago

brew install xclip

It uses pbcopy and pbpaste in Mac; xclip is not needed.

raf2000 commented 1 year ago

it works after I commented this part

Test if xclip, xsel or wl-clipboard are on PATH

if ! command -v xclip > /dev/null 2>&1 && ! command -v xsel > /dev/null 2>&1 && ! command -v wl-clipboard > /dev/null 2>&1 ;then

printf "ERROR: xclip, xsel or wl-clipboard must exist on PATH. Installation cancelled.\n";

printf "%s\n" "$MINIMUM_REQUIREMENTS"

exit 1

fi

then, the pre-reqs "brew install xclip" and it worked like a charm

ynac commented 1 year ago

I just downloaded the zip and tossed it in a folder and opened it up. Beautiful program. Nice work!

nadrad commented 1 year ago

I think 35a6bae is enough for now.