Skip to content

Latest commit

 

History

History
64 lines (41 loc) · 1.21 KB

install.md

File metadata and controls

64 lines (41 loc) · 1.21 KB

Installation

From GitHub Releases (Recommened)

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.

From Source

Prerequisites

  • Go (1.21.0+)
  • Make (optional)

Building & Installing

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