Add build script for cross-compiling Windows executable. Update README to reflect new build process and optional output name.
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Cross-compile win64_mp for Windows amd64.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
out="${1:-win64_mp.exe}"
|
||||
GOOS=windows GOARCH=amd64 go build -ldflags "-s -w" -o "$out" .
|
||||
echo "built $out"
|
||||
Reference in New Issue
Block a user