Files
SGF/scripts/abrir-compras.ps1
2026-11-04 09:37:20 +02:00

8 lines
389 B
PowerShell

$ErrorActionPreference = 'Stop'
$sgfProject = 'C:\laragon\www\sgf-tempo'
Push-Location -LiteralPath $sgfProject
try {
& 'C:\laragon\tools\sgf-tempo\node-v24.22.1-win-arm64\node.exe' 'scripts/purchasing-single-installation.mjs' 'start'
if ($LASTEXITCODE -ne 0) { throw 'Não foi possível abrir a instalação de Compras. Nenhuma base nova foi criada.' }
} finally { Pop-Location }