Optimized build

This commit is contained in:
Luxferre
2026-03-23 09:42:16 +02:00
parent 026aa14b2f
commit 5b173095f1
2 changed files with 7 additions and 5 deletions
+5 -3
View File
@@ -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 ./...
+2 -2
View File
@@ -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`: