#!/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 -H windowsgui" -o "$out" . # Belt-and-suspenders: PE subsystem WINDOWS (2) even if ldflags were dropped. python3 - "$out" <<'PY' import struct, sys path = sys.argv[1] with open(path, "r+b") as f: f.seek(0x3C) pe = struct.unpack("