mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-07-29 09:41:45 +08:00
test: 增加测试套件
This commit is contained in:
12
test/okvm-test/agent/build-windows.sh
Executable file
12
test/okvm-test/agent/build-windows.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/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"
|
||||
Reference in New Issue
Block a user