Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

32 Zeilen
884B

  1. $ErrorActionPreference = 'Stop'
  2. $projectRoot = Split-Path -Parent $MyInvocation.MyCommand.Path
  3. $envFile = Join-Path $projectRoot '.env.local'
  4. $distDir = Join-Path $projectRoot 'dist'
  5. $exeFile = Join-Path $distDir 'qctextbuilder.exe'
  6. if (-not (Test-Path $envFile)) {
  7. throw "Missing .env.local at $envFile"
  8. }
  9. if (-not (Test-Path $exeFile)) {
  10. throw "Missing built executable at $exeFile. Run .\build-local.ps1 first."
  11. }
  12. Get-Content $envFile | ForEach-Object {
  13. $line = $_.Trim()
  14. if (-not $line -or $line.StartsWith('#')) { return }
  15. $parts = $line -split '=', 2
  16. if ($parts.Count -ne 2) { return }
  17. $name = $parts[0].Trim()
  18. $value = $parts[1]
  19. [System.Environment]::SetEnvironmentVariable($name, $value, 'Process')
  20. }
  21. Write-Host "Starting QC Text Builder on $env:HTTP_ADDR using $exeFile" -ForegroundColor Green
  22. Set-Location $projectRoot
  23. & $exeFile