8 lines
399 B
PowerShell
8 lines
399 B
PowerShell
$ErrorActionPreference = 'Stop'
|
|
Push-Location -LiteralPath 'C:\laragon\www\sgf-tempo'
|
|
try {
|
|
& 'C:\laragon\tools\sgf-tempo\node-v24.22.1-win-arm64\node.exe' 'scripts/launch-sgf.mjs' 'start'
|
|
if ($LASTEXITCODE -ne 0) { throw 'Não foi possível abrir o SGF existente. Os dados e a cache foram preservados.' }
|
|
Write-Output 'Abrir o SGF: http://127.0.0.1:8085/sgf'
|
|
} finally { Pop-Location }
|