# Builds the gateway binary (when missing) and starts the Tauri dev app. param([switch]$NoBuild) $ErrorActionPreference = "Stop" $repoRoot = Split-Path -Parent $PSScriptRoot Set-Location $repoRoot $gateway = Join-Path $repoRoot "bin\gateway.exe" if (-not $NoBuild -and -not (Test-Path $gateway)) { & (Join-Path $PSScriptRoot "build-gateway.ps1") } npm run tauri dev