initial: ZeroTier-like P2P mesh VPN server with multi-tenant Web UI

This commit is contained in:
xieyao
2026-06-17 03:50:23 +08:00
commit ee5f036325
74 changed files with 9517 additions and 0 deletions

22
build.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
set -e
GO="${GO:-/usr/local/go/bin/go}"
VERSION="${VERSION:-1.0.0}"
LDFLAGS="-s -w -X main.Version=${VERSION}"
echo "Building zeromesh components (${GO})..."
$GO build -ldflags="${LDFLAGS}" -o bin/zeromesh-controller ./cmd/zeromesh-controller/
echo " -> bin/zeromesh-controller"
$GO build -ldflags="${LDFLAGS}" -o bin/zeromesh-agent ./cmd/zeromesh-agent/
echo " -> bin/zeromesh-agent"
$GO build -ldflags="${LDFLAGS}" -o bin/zeromesh-relay ./cmd/zeromesh-relay/
echo " -> bin/zeromesh-relay"
$GO build -ldflags="${LDFLAGS}" -o bin/zeromesh-cli ./cmd/zeromesh-cli/
echo " -> bin/zeromesh-cli"
echo "Done."