mirror of
https://github.com/Mr-In4inci3le/sliver-gui
synced 2026-08-09 12:14:37 +00:00
- Fix connect flow (a JS syntax error had disabled every frontend handler) - Redesign agent graph as pivot topology: firewall egress, hierarchical chains, arrows coloured by agent (green session / red privileged / blue beacon), join chains by session id so same-host pivots render correctly - Implant generation: align Sliver dep with teamserver protobuf, add tcp-pivot / named-pipe C2 schemes, baseline MTLS transport (fixes exit status 1) - Generate UX: decouple build from save (no stuck 'Building...' spinner) - Wire the armory command (list / install / remove) - App window/taskbar icon + Linux .desktop entry; author watermark - Premium README refresh
43 lines
1.2 KiB
Makefile
Executable File
43 lines
1.2 KiB
Makefile
Executable File
# Sliver GUI build helpers.
|
|
# Requires: Go 1.22+, the Wails v2 CLI, and (on Linux) WebKit dev headers.
|
|
|
|
VERSION ?= $(shell git describe --tags --always 2>/dev/null || echo dev)
|
|
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
|
|
DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
|
LDFLAGS = -X main.Version=$(VERSION) -X main.GitCommit=$(COMMIT) -X main.BuildDate=$(DATE)
|
|
|
|
# WebKit 4.1 tag for modern Linux (Ubuntu 24.04, Kali). Override on WebKit 4.0:
|
|
# make build TAGS=
|
|
TAGS ?= webkit2_41
|
|
TAGARG = $(if $(TAGS),-tags $(TAGS),)
|
|
|
|
.PHONY: build dev test lint vet icons clean
|
|
|
|
## build: compile the GUI with version metadata baked in
|
|
build: icons
|
|
wails build $(TAGARG) -ldflags "$(LDFLAGS)"
|
|
|
|
## dev: run with hot reload
|
|
dev: icons
|
|
wails dev $(TAGARG) -ldflags "$(LDFLAGS)"
|
|
|
|
## icons: copy source icons into the embedded frontend (first build only)
|
|
icons:
|
|
@cp -r frontend/icons frontend/dist/icons 2>/dev/null || true
|
|
|
|
## test: run unit tests
|
|
test:
|
|
go test $(TAGARG) -race -count=1 ./...
|
|
|
|
## vet: run go vet
|
|
vet:
|
|
go vet $(TAGARG) ./...
|
|
|
|
## lint: run golangci-lint (must be installed)
|
|
lint:
|
|
golangci-lint run --build-tags "$(TAGS)"
|
|
|
|
## clean: remove build output
|
|
clean:
|
|
rm -rf build/bin dist
|