-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (51 loc) · 1.55 KB
/
Copy pathMakefile
File metadata and controls
68 lines (51 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
GO_CORE := go-core/podscape-core
GO_MCP := go-core/podscape-mcp
GO_LDFLAGS := -ldflags="-s -w"
GO_FILES := $(shell find go-core -name '*.go')
.PHONY: dev build test typecheck lint go-lint go go-mcp go-test clean build-mac build-win build-linux
## Start the app in dev mode (builds Go sidecar first if missing or changed)
dev: go
npm run dev
## Full production build (Go + Electron)
build: go
electron-vite build
## Build the Go sidecar
go: $(GO_FILES)
cd go-core && go build $(GO_LDFLAGS) -o podscape-core ./cmd/podscape-core/
## Build the MCP server
go-mcp:
cd go-core && go build $(GO_LDFLAGS) -o podscape-mcp ./cmd/podscape-mcp/
## Run Go tests
go-test:
cd go-core && go test ./...
## Lint Go sources (requires golangci-lint; go.mod pins go 1.25.5 — if your local
## go binary is newer, pass GOTOOLCHAIN=go1.25.5 to avoid a parser mismatch)
go-lint:
cd go-core && golangci-lint run ./...
## Run JS/TS tests
test:
npm run test
## Type-check the renderer and main/preload TypeScript projects
typecheck:
npm run typecheck
## Lint TypeScript/TSX sources
lint:
npm run lint
## Run all tests
test-all: go-test go-lint typecheck lint test
## macOS distribution build (delegates to npm to preserve notarization afterSign hook)
build-mac:
npm run build:mac
## Windows distribution build
build-win:
npm run build:win
## Linux distribution build
build-linux:
npm run build:linux
## Remove build artifacts
clean:
rm -f go-core/podscape-core go-core/podscape-mcp
rm -rf out dist
# Build the sidecar only when it doesn't exist
$(GO_CORE):
$(MAKE) go