Files
msime-windows/ui/scripts/launch-keyboard-demo.ps1

22 lines
667 B
PowerShell

[CmdletBinding()]
param(
[ValidateSet("Debug", "Release")]
[string]$Configuration = "Debug",
[switch]$Build
)
$ErrorActionPreference = "Stop"
$scriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$repoRoot = Split-Path -Parent $scriptDir
if ($Build) {
& (Join-Path $scriptDir "build-keyboard-demo.ps1") -Configuration $Configuration
}
$demoPath = Join-Path $repoRoot "build/bin/$Configuration/msimeui-keyboard-demo.exe"
if (-not (Test-Path -LiteralPath $demoPath)) {
throw "Keyboard demo executable not found: $demoPath. Run build-keyboard-demo.ps1 first or pass -Build."
}
Start-Process -FilePath $demoPath -WorkingDirectory $repoRoot