h-m-m icon indicating copy to clipboard operation
h-m-m copied to clipboard

Install script for Mac

Open nadrad opened this issue 2 years ago • 4 comments

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?

nadrad avatar Sep 17 '22 13:09 nadrad

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

otakumesi avatar Sep 19 '22 14:09 otakumesi

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.

gloof11 avatar Sep 23 '22 14:09 gloof11

brew install php
brew install xclip
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/nadrad/h-m-m/main/install.sh)"

airingursb avatar Sep 27 '22 11:09 airingursb

brew install xclip

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

nadrad avatar Oct 24 '22 08:10 nadrad

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

raf2000 avatar Jan 28 '23 18:01 raf2000

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

ynac avatar Feb 22 '23 21:02 ynac

I think 35a6bae is enough for now.

nadrad avatar Jul 23 '23 09:07 nadrad