mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-29 13:41:45 +08:00
13 lines
239 B
Bash
Executable File
13 lines
239 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
cd "$(dirname "$0")"
|
|
|
|
arch="${GOARCH:-amd64}"
|
|
out="../bin/okvm-win-agent-${arch}.exe"
|
|
|
|
GOOS=windows GOARCH="$arch" CGO_ENABLED=0 \
|
|
go build -trimpath -ldflags "-s -w" -o "$out" .
|
|
|
|
echo "Built $out"
|