On Linux, and macOS, this can be done with the curl
and install
commands:
curl -LO https://github.com/BetaPictoris/graveyard/releases/latest/download/grave
# For a global install
sudo install -Dt /usr/local/bin -m 755 ./grave
# For a user install
install -Dt ~/.local/bin -m 755 ./grave
On Windows youโll need to download the grave.exe
file from releases.
Start by cloning the repository:
git clone https://github.com/BetaPictoris/graveyard.git
cd ./graveyard/
Then, you can install globally on UNIX systems with one of the following commands:
# Using Make
sudo make install
# Using Go directly
mkdir build
go build -o ./build/grave ./cmd/main.go
sudo install -Dt /usr/local/bin -m 755 ./build/grave
If you donโt have permissions to modify /usr/local/bin
or to run commands as
root
you can do a user install:
# Using Make
make usrinstall
# Using Go directly
mkdir build
go build -o ./build/grave ./cmd/main.go
install -Dt ~/.local/bin -m 755 ./build/grave