backupy-agent/apps/backupy-decrypt/Makefile
TronoSfera 8b0c978337 feat(initial): Backupy agent + backupy-decrypt CLI
Source ports from the TronoSfera/backupy-cloud monorepo:
- apps/agent/        — Go agent (WSS client, persistent queue, Docker
                       discovery, 5 DB drivers: PG/MySQL/Mongo/Redis/SQLite,
                       pre/post hooks, Prometheus metrics)
- apps/backupy-decrypt/ — standalone CLI for client-side decryption
- packages/proto/    — protobuf wire format (generated .pb.go committed
                       so the repo builds without protoc)
- docs/              — agent spec + wire-protocol contract

Apache-2.0 license. Image published to ghcr.io/tronosfera/backupy-agent
on every v* tag via .github/workflows/release.yml (multi-arch amd64+arm64).
2026-05-17 20:22:35 +03:00

37 lines
945 B
Makefile

# backupy-decrypt — Makefile
#
# Building:
# make build # builds for the host OS/arch into ./bin/
# make release # multi-platform via goreleaser (requires goreleaser)
# make test # go test -race
# make tidy # go mod tidy
# make install # go install into $GOBIN
#
# Versioning: the binary's --version output is overridden via -ldflags.
BINARY := backupy-decrypt
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
LDFLAGS := -s -w -X main.version=$(VERSION)
GO ?= go
.PHONY: all build test tidy release install clean
all: build
build:
CGO_ENABLED=0 $(GO) build -trimpath -ldflags '$(LDFLAGS)' -o bin/$(BINARY) ./cmd/backupy-decrypt
test:
$(GO) test -race -count=1 ./...
tidy:
$(GO) mod tidy
install:
CGO_ENABLED=0 $(GO) install -trimpath -ldflags '$(LDFLAGS)' ./cmd/backupy-decrypt
release:
goreleaser release --clean --snapshot
clean:
rm -rf bin dist