From 25f32bf8e973391bc62d152cc74501de3667b2c4 Mon Sep 17 00:00:00 2001 From: yair Date: Fri, 14 Nov 2025 18:03:44 +0200 Subject: [PATCH] go test (no udp limit) --- scripts/build_go_receiver.ps1 | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 scripts/build_go_receiver.ps1 diff --git a/scripts/build_go_receiver.ps1 b/scripts/build_go_receiver.ps1 new file mode 100644 index 0000000..0d850ab --- /dev/null +++ b/scripts/build_go_receiver.ps1 @@ -0,0 +1,42 @@ +# Build script for Go UDP receiver on Windows +# Run this script to compile the high-performance Go receiver + +$ErrorActionPreference = "Stop" + +Write-Host "Building Go UDP Receiver..." -ForegroundColor Cyan + +# Check if Go is installed +try { + $goVersion = go version + Write-Host "āœ“ Found Go: $goVersion" -ForegroundColor Green +} catch { + Write-Host "āœ— Go is not installed or not in PATH" -ForegroundColor Red + Write-Host " Download from: https://go.dev/dl/" -ForegroundColor Yellow + exit 1 +} + +# Navigate to scripts/go directory +$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path +$goDir = Join-Path $scriptDir "go" +Set-Location $goDir + +# Clean dependencies +Write-Host "`nCleaning dependencies..." -ForegroundColor Cyan +go mod tidy + +# Build the executable +Write-Host "`nBuilding executable..." -ForegroundColor Cyan +go build -o recv_raw_rolling.exe main.go + +if ($LASTEXITCODE -eq 0) { + Write-Host "`nāœ“ Build successful!" -ForegroundColor Green + Write-Host " Executable: scripts\go\recv_raw_rolling.exe" -ForegroundColor Green + Write-Host "`nTo run:" -ForegroundColor Yellow + Write-Host " cd scripts\go" -ForegroundColor White + Write-Host " .\recv_raw_rolling.exe" -ForegroundColor White + Write-Host "`nPress ESC to quit the application" -ForegroundColor Gray +} else { + Write-Host "`nāœ— Build failed!" -ForegroundColor Red + Write-Host " See scripts\go\README.md for troubleshooting" -ForegroundColor Yellow + exit 1 +} \ No newline at end of file