initial: ZeroTier-like P2P mesh VPN server with multi-tenant Web UI
This commit is contained in:
22
build.sh
Executable file
22
build.sh
Executable 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."
|
||||
Reference in New Issue
Block a user