Files
CrossRelay/scripts/dev.ps1
T

14 lines
373 B
PowerShell

# 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