13 lines
No EOL
282 B
Bash
Executable file
13 lines
No EOL
282 B
Bash
Executable file
#!/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!" |