Optimized build
This commit is contained in:
@@ -8,10 +8,12 @@ TUI_SRC = ./cmd/sidekick-tui
|
|||||||
MCP_SRC = ./cmd/sidekick-mcp
|
MCP_SRC = ./cmd/sidekick-mcp
|
||||||
TUI_BIN = $(BIN_DIR)/sidekick-tui
|
TUI_BIN = $(BIN_DIR)/sidekick-tui
|
||||||
MCP_BIN = $(BIN_DIR)/sidekick-mcp
|
MCP_BIN = $(BIN_DIR)/sidekick-mcp
|
||||||
|
GOFLAGS ?= -a -trimpath -gcflags=all="-l -B -e"
|
||||||
|
LDFLAGS ?= -s -w
|
||||||
|
|
||||||
.PHONY: all build test clean install uninstall fmt
|
.PHONY: all build test clean install uninstall fmt
|
||||||
|
|
||||||
all: build
|
all: clean fmt build
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
@./fmt.sh
|
@./fmt.sh
|
||||||
@@ -19,8 +21,8 @@ fmt:
|
|||||||
|
|
||||||
build:
|
build:
|
||||||
@mkdir -p $(BIN_DIR)
|
@mkdir -p $(BIN_DIR)
|
||||||
go build -o $(TUI_BIN) $(TUI_SRC)
|
go build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(TUI_BIN) $(TUI_SRC)
|
||||||
go build -o $(MCP_BIN) $(MCP_SRC)
|
go build $(GOFLAGS) -ldflags "$(LDFLAGS)" -o $(MCP_BIN) $(MCP_SRC)
|
||||||
|
|
||||||
test:
|
test:
|
||||||
go test -v ./...
|
go test -v ./...
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ Or manually:
|
|||||||
```bash
|
```bash
|
||||||
git clone https://codeberg.org/luxferre/Sidekick.git
|
git clone https://codeberg.org/luxferre/Sidekick.git
|
||||||
cd Sidekick
|
cd Sidekick
|
||||||
go build -o bin/sidekick-tui ./cmd/sidekick-tui
|
go build -a -trimpath -gcflags=all="-l -B -e" -ldflags "-s -w" -o bin/sidekick-tui ./cmd/sidekick-tui
|
||||||
```
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
@@ -165,7 +165,7 @@ user's request and delegate tasks accordingly.
|
|||||||
|
|
||||||
### Running the Sidekick MCP server
|
### Running the Sidekick MCP server
|
||||||
|
|
||||||
Sidekick can also act as an MCP server, allowing other LLM-powered applications to leverage its agentic capabilities.
|
Sidekick can also act as an MCP server, allowing other LLM-powered applications to leverage its agentic capabilities. It is built alongside the TUI using `make`.
|
||||||
|
|
||||||
1. Configure the `mcp_listener` in `config.toml`:
|
1. Configure the `mcp_listener` in `config.toml`:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user