13 lines
282 B
Bash
13 lines
282 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Create the bin directory
|
||
|
mkdir -p bin
|
||
|
|
||
|
# Build the CLI
|
||
|
echo "Building the CLI..."
|
||
|
CGO_ENABLED=0 go build -ldflags "-s -w" -o ./bin/eternity ./cmd/main.go
|
||
|
|
||
|
# Install the CLI
|
||
|
echo "Installing the CLI..."
|
||
|
sudo install ./bin/eternity /bin
|
||
|
echo "CLI installed successfully!"
|